Class: Ruice::Property
- Inherits:
-
Object
- Object
- Ruice::Property
- Defined in:
- lib/ruice/container.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, default = nil) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(name, default = nil) ⇒ Property
Returns a new instance of Property.
12 13 14 15 |
# File 'lib/ruice/container.rb', line 12 def initialize(name, default = nil) @name = name @default = default end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
17 18 19 |
# File 'lib/ruice/container.rb', line 17 def default @default end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
17 18 19 |
# File 'lib/ruice/container.rb', line 17 def name @name end |