Sha256: 9042e13135c52dfa3c0ffa86291efec346c8b031c53f4947614899eaba636d12
Contents?: true
Size: 310 Bytes
Versions: 2
Compression:
Stored size: 310 Bytes
Contents
module Hemingway module CenterNode 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hemingway-1.0.0 | lib/hemingway/block/center/center_nodes.rb |
hemingway-0.0.3 | lib/hemingway/block/center/center_nodes.rb |