Class: Ruice::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/ruice/container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#defaultObject (readonly)

Returns the value of attribute default.



17
18
19
# File 'lib/ruice/container.rb', line 17

def default
  @default
end

#nameObject (readonly)

Returns the value of attribute name.



17
18
19
# File 'lib/ruice/container.rb', line 17

def name
  @name
end