Class: Chordproko::Comment
- Inherits:
-
Object
- Object
- Chordproko::Comment
- Defined in:
- lib/chordproko/comment.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(content) ⇒ Comment
constructor
A new instance of Comment.
- #to_s ⇒ Object
Constructor Details
#initialize(content) ⇒ Comment
Returns a new instance of Comment.
7 8 9 |
# File 'lib/chordproko/comment.rb', line 7 def initialize content @content = content end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
3 4 5 |
# File 'lib/chordproko/comment.rb', line 3 def content @content end |
Instance Method Details
#each(&block) ⇒ Object
4 5 6 |
# File 'lib/chordproko/comment.rb', line 4 def each(&block) [self].each(&block) end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/chordproko/comment.rb', line 11 def to_s "#{@content}" end |