Class: Elisp::Desc

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

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Desc

Returns a new instance of Desc.



33
34
35
# File 'lib/elisp.rb', line 33

def initialize(content)
  @content = content
end

Instance Method Details

#htmlObject



37
38
39
40
# File 'lib/elisp.rb', line 37

def html
  content = CGI.escape_html(@content)
  %(<p class="description">#{content}</p>)
end