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.



276
277
278
# File 'lib/rexle.rb', line 276

def initialize(value)
  super(value)
end

Instance Method Details

#<(val2) ⇒ Object



280
281
282
# File 'lib/rexle.rb', line 280

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

#>(val2) ⇒ Object



284
285
286
# File 'lib/rexle.rb', line 284

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