Module: Hemingway::CenterNode
- Defined in:
- lib/hemingway/block/center/center_nodes.rb
Instance Method Summary collapse
Instance Method Details
#html(block_content) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/hemingway/block/center/center_nodes.rb', line 4 def html(block_content) content = block_content.elements.map do |e| if e.respond_to?(:content) e.content.html else e.visible_html end end.join Build.tag("div", content , class: "center") end |