Class: SongPro::Section
- Inherits:
-
Object
- Object
- SongPro::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.
7 8 9 10 |
# File 'lib/song_pro/section.rb', line 7 def initialize(name: '') @name = name @lines = [] end |
Instance Attribute Details
#lines ⇒ Object
Returns the value of attribute lines.
5 6 7 |
# File 'lib/song_pro/section.rb', line 5 def lines @lines end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/song_pro/section.rb', line 5 def name @name end |