Class: Rubyang::Xpath::Number
- Inherits:
-
Object
- Object
- Rubyang::Xpath::Number
- Defined in:
- lib/rubyang/xpath.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Number
constructor
A new instance of Number.
Constructor Details
#initialize(value) ⇒ Number
Returns a new instance of Number.
421 422 423 |
# File 'lib/rubyang/xpath.rb', line 421 def initialize value @value = value.to_f.to_s end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
420 421 422 |
# File 'lib/rubyang/xpath.rb', line 420 def value @value end |