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.



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

def initialize(value)
  super(value)
end

Instance Method Details

#<(val2) ⇒ Object



278
279
280
# File 'lib/rexle.rb', line 278

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

#>(val2) ⇒ Object



282
283
284
# File 'lib/rexle.rb', line 282

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