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