class Int
Public Class Methods
<(x)
click to toggle source
@param [Numeric] x @return [Rtype::Behavior::IntegerCheck] @example Value must be a Integer and > 2
rtype [Int > 2] => Any
# File lib/rtype/behavior/core_ext.rb, line 113 def self.<(x) ::Rtype::Behavior::IntegerCheck.new(:<, x) end
<=(x)
click to toggle source
@param [Numeric] x @return [Rtype::Behavior::IntegerCheck] @example Value must be a Integer and > 2
rtype [Int > 2] => Any
# File lib/rtype/behavior/core_ext.rb, line 121 def self.<=(x) ::Rtype::Behavior::IntegerCheck.new(:<=, x) end
==(x)
click to toggle source
@param [Numeric] x @return [Rtype::Behavior::IntegerCheck] @example Value must be a Integer and > 2
rtype [Int > 2] => Any
# File lib/rtype/behavior/core_ext.rb, line 129 def self.==(x) ::Rtype::Behavior::IntegerCheck.new(:==, x) end
>(x)
click to toggle source
@param [Numeric] x @return [Rtype::Behavior::IntegerCheck] @example Value must be a Integer and > 2
rtype [Int > 2] => Any
# File lib/rtype/behavior/core_ext.rb, line 97 def self.>(x) ::Rtype::Behavior::IntegerCheck.new(:>, x) end
>=(x)
click to toggle source
@param [Numeric] x @return [Rtype::Behavior::IntegerCheck] @example Value must be a Integer and > 2
rtype [Int > 2] => Any
# File lib/rtype/behavior/core_ext.rb, line 105 def self.>=(x) ::Rtype::Behavior::IntegerCheck.new(:>=, x) end