Class: Twine::TwineSection

Inherits:
Object
  • Object
show all
Defined in:
lib/twine/twine_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#definitionsObject (readonly)

Returns the value of attribute definitions.



57
58
59
# File 'lib/twine/twine_file.rb', line 57

def definitions
  @definitions
end

#nameObject (readonly)

Returns the value of attribute name.



56
57
58
# File 'lib/twine/twine_file.rb', line 56

def name
  @name
end