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.



260
261
262
# File 'lib/rexle.rb', line 260

def initialize(value)
  super(value)
end

Instance Method Details

#<(val2) ⇒ Object



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

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

#>(val2) ⇒ Object



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

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