Class: SongPro::Line
- Inherits:
-
Object
- Object
- SongPro::Line
- Defined in:
- lib/song_pro/line.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#measures ⇒ Object
Returns the value of attribute measures.
-
#parts ⇒ Object
Returns the value of attribute parts.
-
#tablature ⇒ Object
Returns the value of attribute tablature.
Instance Method Summary collapse
- #comment? ⇒ Boolean
-
#initialize ⇒ Line
constructor
A new instance of Line.
- #measures? ⇒ Boolean
- #tablature? ⇒ Boolean
Constructor Details
#initialize ⇒ Line
Returns a new instance of Line.
7 8 9 10 11 12 |
# File 'lib/song_pro/line.rb', line 7 def initialize @parts = [] @tablature = nil @measures = nil @comment = nil end |
Instance Attribute Details
#comment ⇒ Object
Returns the value of attribute comment.
5 6 7 |
# File 'lib/song_pro/line.rb', line 5 def comment @comment end |
#measures ⇒ Object
Returns the value of attribute measures.
5 6 7 |
# File 'lib/song_pro/line.rb', line 5 def measures @measures end |
#parts ⇒ Object
Returns the value of attribute parts.
5 6 7 |
# File 'lib/song_pro/line.rb', line 5 def parts @parts end |
#tablature ⇒ Object
Returns the value of attribute tablature.
5 6 7 |
# File 'lib/song_pro/line.rb', line 5 def tablature @tablature end |
Instance Method Details
#comment? ⇒ Boolean
22 23 24 |
# File 'lib/song_pro/line.rb', line 22 def comment? !@comment.nil? end |
#measures? ⇒ Boolean
18 19 20 |
# File 'lib/song_pro/line.rb', line 18 def measures? !@measures.nil? end |
#tablature? ⇒ Boolean
14 15 16 |
# File 'lib/song_pro/line.rb', line 14 def tablature? !@tablature.nil? end |