Class: Indocker::PartialMetadata
- Inherits:
-
Object
- Object
- Indocker::PartialMetadata
- Defined in:
- lib/indocker/partial/partial_metadata.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, &definition) ⇒ PartialMetadata
constructor
A new instance of PartialMetadata.
Constructor Details
#initialize(name, &definition) ⇒ PartialMetadata
Returns a new instance of PartialMetadata.
4 5 6 7 |
# File 'lib/indocker/partial/partial_metadata.rb', line 4 def initialize(name, &definition) @name = name @definition = definition end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
2 3 4 |
# File 'lib/indocker/partial/partial_metadata.rb', line 2 def definition @definition end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/indocker/partial/partial_metadata.rb', line 2 def name @name end |