Class: Rexle::Element::Value
- Inherits:
-
String
- Object
- String
- Rexle::Element::Value
- Defined in:
- lib/rexle.rb
Instance Method Summary collapse
- #<(val2) ⇒ Object
- #>(val2) ⇒ Object
-
#initialize(value) ⇒ Value
constructor
A new instance of Value.
Constructor Details
#initialize(value) ⇒ Value
Returns a new instance of Value.
277 278 279 |
# File 'lib/rexle.rb', line 277 def initialize(value) super(value) end |
Instance Method Details
#<(val2) ⇒ Object
281 282 283 |
# File 'lib/rexle.rb', line 281 def <(val2) self.to_f < val2.to_f end |
#>(val2) ⇒ Object
285 286 287 |
# File 'lib/rexle.rb', line 285 def >(val2) self.to_f > val2.to_f end |