Class: Ringo::Property
- Inherits:
-
Object
- Object
- Ringo::Property
- Defined in:
- lib/ringo/property.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(name, value) ⇒ Property
Returns a new instance of Property.
10 11 12 13 |
# File 'lib/ringo/property.rb', line 10 def initialize name, value @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/ringo/property.rb', line 8 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
8 9 10 |
# File 'lib/ringo/property.rb', line 8 def value @value end |