Class: Section

Inherits:
Object
  • Object
show all
Defined in:
lib/song_pro/section.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#linesObject

Returns the value of attribute lines.



4
5
6
# File 'lib/song_pro/section.rb', line 4

def lines
  @lines
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/song_pro/section.rb', line 4

def name
  @name
end