Class: Flo

Inherits:
Object show all
Defined in:
lib/rtype/behavior/core_ext.rb

Class Method Summary collapse

Class Method Details

.<(x) ⇒ Rtype::Behavior::FloatCheck

Examples:

Value must be a Float and > 2

rtype [Flo > 2] => Any

Parameters:

  • x (Numeric)

Returns:



155
156
157
# File 'lib/rtype/behavior/core_ext.rb', line 155

def self.<(x)
	::Rtype::Behavior::FloatCheck.new(:<, x)
end

.<=(x) ⇒ Rtype::Behavior::FloatCheck

Examples:

Value must be a Float and > 2

rtype [Flo > 2] => Any

Parameters:

  • x (Numeric)

Returns:



163
164
165
# File 'lib/rtype/behavior/core_ext.rb', line 163

def self.<=(x)
	::Rtype::Behavior::FloatCheck.new(:<=, x)
end

.==(x) ⇒ Rtype::Behavior::FloatCheck

Examples:

Value must be a Float and > 2

rtype [Flo > 2] => Any

Parameters:

  • x (Numeric)

Returns:



171
172
173
# File 'lib/rtype/behavior/core_ext.rb', line 171

def self.==(x)
	::Rtype::Behavior::FloatCheck.new(:==, x)
end

.>(x) ⇒ Rtype::Behavior::FloatCheck

Examples:

Value must be a Float and > 2

rtype [Flo > 2] => Any

Parameters:

  • x (Numeric)

Returns:



139
140
141
# File 'lib/rtype/behavior/core_ext.rb', line 139

def self.>(x)
	::Rtype::Behavior::FloatCheck.new(:>, x)
end

.>=(x) ⇒ Rtype::Behavior::FloatCheck

Examples:

Value must be a Float and > 2

rtype [Flo > 2] => Any

Parameters:

  • x (Numeric)

Returns:



147
148
149
# File 'lib/rtype/behavior/core_ext.rb', line 147

def self.>=(x)
	::Rtype::Behavior::FloatCheck.new(:>=, x)
end