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.



296
297
298
# File 'lib/rexle.rb', line 296

def initialize(value)
  super(value)
end

Instance Method Details

#<(val2) ⇒ Object



300
301
302
# File 'lib/rexle.rb', line 300

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

#>(val2) ⇒ Object



304
305
306
# File 'lib/rexle.rb', line 304

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