Class: Rubyang::Xpath::Number

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyang/xpath.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (readonly)

Returns the value of attribute value.



420
421
422
# File 'lib/rubyang/xpath.rb', line 420

def value
  @value
end