Module: Literal::Type

Instance Method Summary collapse

Instance Method Details

#<=(other, context: nil) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/literal/type.rb', line 8

def <=(other, context: nil)
	case other
	when Literal::Type
		other.>=(self, context:)
	else
		false
	end
end

#>=(other, context: nil) ⇒ Object



4
5
6
# File 'lib/literal/type.rb', line 4

def >=(other, context: nil)
	self == other
end