Class: Jackb::Html

Inherits:
Highlight show all
Defined in:
lib/jackb/html.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Highlight

render

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

#contentObject (readonly)

Returns the value of attribute content.



3
4
5
# File 'lib/jackb/html.rb', line 3

def content
  @content
end

Instance Method Details

#renderObject



10
11
12
# File 'lib/jackb/html.rb', line 10

def render
  super(@content)
end