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.



78
79
80
# File 'lib/elisp.rb', line 78

def initialize(content)
  @content = content
end

Instance Method Details

#htmlObject



82
83
84
85
# File 'lib/elisp.rb', line 82

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