Class: Section
- Inherits:
-
Object
- Object
- Section
- Defined in:
- lib/song_pro/section.rb
Instance Attribute Summary collapse
-
#lines ⇒ Object
Returns the value of attribute lines.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name: '') ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(name: '') ⇒ Section
Returns a new instance of Section.
6 7 8 9 |
# File 'lib/song_pro/section.rb', line 6 def initialize(name: '') @name = name @lines = [] end |
Instance Attribute Details
#lines ⇒ Object
Returns the value of attribute lines.
4 5 6 |
# File 'lib/song_pro/section.rb', line 4 def lines @lines end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/song_pro/section.rb', line 4 def name @name end |