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.
78 79 80 |
# File 'lib/elisp.rb', line 78 def initialize(content) @content = content end |
Instance Method Details
#html ⇒ Object
82 83 84 85 |
# File 'lib/elisp.rb', line 82 def html content = CGI.escape_html(@content) %(<p class="description">#{content}</p>) end |