Class: Elisp::Comment
- Inherits:
-
Object
- Object
- Elisp::Comment
- Defined in:
- lib/elisp/comment.rb
Instance Method Summary collapse
- #<<(content) ⇒ Object
- #html ⇒ Object
-
#initialize(content) ⇒ Comment
constructor
A new instance of Comment.
- #to_minor_para ⇒ Object
Constructor Details
#initialize(content) ⇒ Comment
Returns a new instance of Comment.
2 3 4 |
# File 'lib/elisp/comment.rb', line 2 def initialize(content) @content = content end |
Instance Method Details
#<<(content) ⇒ Object
6 7 8 |
# File 'lib/elisp/comment.rb', line 6 def <<(content) @content << "\n#{content}" end |
#html ⇒ Object
14 15 16 |
# File 'lib/elisp/comment.rb', line 14 def html self.class.parse(@content) end |
#to_minor_para ⇒ Object
10 11 12 |
# File 'lib/elisp/comment.rb', line 10 def to_minor_para Elisp::MinorPara.new(@content) end |