Class: Twine::TwineSection
- Inherits:
-
Object
- Object
- Twine::TwineSection
- Defined in:
- lib/twine/twine_file.rb
Instance Attribute Summary collapse
-
#definitions ⇒ Object
readonly
Returns the value of attribute definitions.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ TwineSection
constructor
A new instance of TwineSection.
Constructor Details
#initialize(name) ⇒ TwineSection
Returns a new instance of TwineSection.
59 60 61 62 |
# File 'lib/twine/twine_file.rb', line 59 def initialize(name) @name = name @definitions = [] end |
Instance Attribute Details
#definitions ⇒ Object (readonly)
Returns the value of attribute definitions.
57 58 59 |
# File 'lib/twine/twine_file.rb', line 57 def definitions @definitions end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
56 57 58 |
# File 'lib/twine/twine_file.rb', line 56 def name @name end |