Class: CommaParty::Markup
- Inherits:
-
Object
- Object
- CommaParty::Markup
- Defined in:
- lib/commaparty/markup.rb
Instance Method Summary collapse
- #builder ⇒ Object
- #call ⇒ Object
- #hiccup ⇒ Object
-
#initialize(hiccup) ⇒ Markup
constructor
A new instance of Markup.
Constructor Details
#initialize(hiccup) ⇒ Markup
Returns a new instance of Markup.
7 8 9 |
# File 'lib/commaparty/markup.rb', line 7 def initialize(hiccup) @hiccup = [hiccup] end |
Instance Method Details
#builder ⇒ Object
15 16 17 |
# File 'lib/commaparty/markup.rb', line 15 def builder build(@hiccup) end |
#call ⇒ Object
11 12 13 |
# File 'lib/commaparty/markup.rb', line 11 def call build(@hiccup).doc.to_html end |
#hiccup ⇒ Object
19 20 21 |
# File 'lib/commaparty/markup.rb', line 19 def hiccup @hiccup.flatten(1) end |