Class: Sourcify::Common::Parser::RawScanner::Comment
- Defined in:
- lib/sourcify/lib/sourcify/common/parser/raw_scanner/comment.rb
Instance Method Summary collapse
Instance Method Details
#<<(content) ⇒ Object
7 8 9 |
# File 'lib/sourcify/lib/sourcify/common/parser/raw_scanner/comment.rb', line 7 def <<(content) (@contents ||= []) << content end |
#closed? ⇒ Boolean
15 16 17 |
# File 'lib/sourcify/lib/sourcify/common/parser/raw_scanner/comment.rb', line 15 def closed? @contents[-1].split("\n")[-1].strip == '=end' end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/sourcify/lib/sourcify/common/parser/raw_scanner/comment.rb', line 11 def to_s @contents.join end |