Class: CommaParty::Markup

Inherits:
Object
  • Object
show all
Defined in:
lib/commaparty/markup.rb

Instance Method Summary collapse

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

#builderObject



15
16
17
# File 'lib/commaparty/markup.rb', line 15

def builder
  build(@hiccup)
end

#callObject



11
12
13
# File 'lib/commaparty/markup.rb', line 11

def call
  build(@hiccup).doc.to_html
end

#hiccupObject



19
20
21
# File 'lib/commaparty/markup.rb', line 19

def hiccup
  @hiccup.flatten(1)
end