Class: Elisp::Desc
- Inherits:
-
Object
- Object
- Elisp::Desc
- Defined in:
- lib/elisp.rb
Instance Method Summary collapse
- #html ⇒ Object
-
#initialize(content) ⇒ Desc
constructor
A new instance of Desc.
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
#html ⇒ Object
37 38 39 40 |
# File 'lib/elisp.rb', line 37 def html content = CGI.escape_html(@content) %(<p class="description">#{content}</p>) end |