Class: Rexle::Element::Value

Inherits:
String
  • Object
show all
Defined in:
lib/rexle.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Value

Returns a new instance of Value.



265
266
267
# File 'lib/rexle.rb', line 265

def initialize(value)
  super(value)
end

Instance Method Details

#<(val2) ⇒ Object



269
270
271
# File 'lib/rexle.rb', line 269

def <(val2)
  self.to_f < val2.to_f
end

#>(val2) ⇒ Object



273
274
275
# File 'lib/rexle.rb', line 273

def >(val2)
  self.to_f > val2.to_f
end