Class: Line
- Inherits:
-
Object
- Object
- Line
- Defined in:
- lib/song_pro/line.rb
Instance Attribute Summary collapse
-
#parts ⇒ Object
Returns the value of attribute parts.
-
#tablature ⇒ Object
Returns the value of attribute tablature.
Instance Method Summary collapse
-
#initialize ⇒ Line
constructor
A new instance of Line.
- #tablature? ⇒ Boolean
Constructor Details
#initialize ⇒ Line
Returns a new instance of Line.
6 7 8 9 |
# File 'lib/song_pro/line.rb', line 6 def initialize @parts = [] @tablature = nil end |
Instance Attribute Details
#parts ⇒ Object
Returns the value of attribute parts.
4 5 6 |
# File 'lib/song_pro/line.rb', line 4 def parts @parts end |
#tablature ⇒ Object
Returns the value of attribute tablature.
4 5 6 |
# File 'lib/song_pro/line.rb', line 4 def tablature @tablature end |
Instance Method Details
#tablature? ⇒ Boolean
11 12 13 |
# File 'lib/song_pro/line.rb', line 11 def tablature? return @tablature != nil end |