Class: Rexle::Element::Attribute
- Inherits:
-
Object
- Object
- Rexle::Element::Attribute
- Defined in:
- lib/rexle.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Attribute
constructor
A new instance of Attribute.
- #to_f ⇒ Object
- #to_i ⇒ Object
Constructor Details
#initialize(value) ⇒ Attribute
Returns a new instance of Attribute.
301 302 303 |
# File 'lib/rexle.rb', line 301 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute value.
299 300 301 |
# File 'lib/rexle.rb', line 299 def value @value end |
Instance Method Details
#to_f ⇒ Object
305 306 307 |
# File 'lib/rexle.rb', line 305 def to_f() @value.to_f end |
#to_i ⇒ Object
309 310 311 |
# File 'lib/rexle.rb', line 309 def to_i() @value.to_i end |