class Num

Public Class Methods

<(x) click to toggle source

@param [Numeric] x @return [Rtype::Behavior::NumericCheck] @example Value must be a Numeric and > 2

rtype [Num > 2] => Any
# File lib/rtype/behavior/core_ext.rb, line 71
def self.<(x)
        ::Rtype::Behavior::NumericCheck.new(:<, x)
end
<=(x) click to toggle source

@param [Numeric] x @return [Rtype::Behavior::NumericCheck] @example Value must be a Numeric and > 2

rtype [Num > 2] => Any
# File lib/rtype/behavior/core_ext.rb, line 79
def self.<=(x)
        ::Rtype::Behavior::NumericCheck.new(:<=, x)
end
==(x) click to toggle source

@param [Numeric] x @return [Rtype::Behavior::NumericCheck] @example Value must be a Numeric and > 2

rtype [Num > 2] => Any
# File lib/rtype/behavior/core_ext.rb, line 87
def self.==(x)
        ::Rtype::Behavior::NumericCheck.new(:==, x)
end
>(x) click to toggle source

@param [Numeric] x @return [Rtype::Behavior::NumericCheck] @example Value must be a Numeric and > 2

rtype [Num > 2] => Any
# File lib/rtype/behavior/core_ext.rb, line 55
def self.>(x)
        ::Rtype::Behavior::NumericCheck.new(:>, x)
end
>=(x) click to toggle source

@param [Numeric] x @return [Rtype::Behavior::NumericCheck] @example Value must be a Numeric and > 2

rtype [Num > 2] => Any
# File lib/rtype/behavior/core_ext.rb, line 63
def self.>=(x)
        ::Rtype::Behavior::NumericCheck.new(:>=, x)
end