Class: Nokolexbor::Attribute
- Inherits:
-
Object
- Object
- Nokolexbor::Attribute
- Defined in:
- lib/nokolexbor/attribute.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
(also: #text, #content, #to_s, #to_str)
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(name, value) ⇒ Attribute
Returns a new instance of Attribute.
8 9 10 11 |
# File 'lib/nokolexbor/attribute.rb', line 8 def initialize(name, value) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/nokolexbor/attribute.rb', line 5 def name @name end |
#value ⇒ Object Also known as: text, content, to_s, to_str
Returns the value of attribute value.
6 7 8 |
# File 'lib/nokolexbor/attribute.rb', line 6 def value @value end |