Class: Metro::PropertyDefinition
- Inherits:
-
Object
- Object
- Metro::PropertyDefinition
- Defined in:
- lib/metro/models/properties/property.rb
Overview
A property definition contains the name of the property and the options specified with it. This is used internally to define properties and sub-properties.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, options) ⇒ PropertyDefinition
constructor
A new instance of PropertyDefinition.
Constructor Details
#initialize(name, options) ⇒ PropertyDefinition
Returns a new instance of PropertyDefinition.
197 198 199 200 |
# File 'lib/metro/models/properties/property.rb', line 197 def initialize(name,) @name = name @options = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
195 196 197 |
# File 'lib/metro/models/properties/property.rb', line 195 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
195 196 197 |
# File 'lib/metro/models/properties/property.rb', line 195 def @options end |