Class: Jackb::Html
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(content) ⇒ Html
constructor
A new instance of Html.
- #render ⇒ Object
Methods inherited from Highlight
Constructor Details
#initialize(content) ⇒ Html
Returns a new instance of Html.
5 6 7 |
# File 'lib/jackb/html.rb', line 5 def initialize(content) @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
3 4 5 |
# File 'lib/jackb/html.rb', line 3 def content @content end |
Instance Method Details
#render ⇒ Object
10 11 12 |
# File 'lib/jackb/html.rb', line 10 def render super(@content) end |