Class: Property
- Inherits:
-
Object
- Object
- Property
- Defined in:
- lib/ycn/property.rb
Instance Attribute Summary collapse
-
#default_value ⇒ Object
Returns the value of attribute default_value.
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(klass, name, type, default_value) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(klass, name, type, default_value) ⇒ Property
Returns a new instance of Property.
4 5 6 7 8 9 10 11 |
# File 'lib/ycn/property.rb', line 4 def initialize klass, name, type, default_value eval("extend #{camelize configatron.lang}Property") @klass = klass @name = name @type = type @default_value = default_value end |
Instance Attribute Details
#default_value ⇒ Object
Returns the value of attribute default_value.
2 3 4 |
# File 'lib/ycn/property.rb', line 2 def default_value @default_value end |
#klass ⇒ Object
Returns the value of attribute klass.
2 3 4 |
# File 'lib/ycn/property.rb', line 2 def klass @klass end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/ycn/property.rb', line 2 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
2 3 4 |
# File 'lib/ycn/property.rb', line 2 def type @type end |