Class: Elisp::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/elisp/comment.rb

Instance Method Summary collapse

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

#htmlObject



14
15
16
# File 'lib/elisp/comment.rb', line 14

def html
  self.class.parse(@content)
end

#to_minor_paraObject



10
11
12
# File 'lib/elisp/comment.rb', line 10

def to_minor_para
  Elisp::MinorPara.new(@content)
end