Sha256: 91b87aa027b8126f1e8870b59e2ae83cc905ba26eccaca036a13ca548ce284af
Contents?: true
Size: 415 Bytes
Versions: 6
Compression:
Stored size: 415 Bytes
Contents
require "ledge/row_heading" module Ledge class Row ROW_TYPES = { "heading" => Ledge::RowHeading } def self.row_from data unless ROW_TYPES[data["type"]].nil? ROW_TYPES[data["type"]].new data["content"] else Ledge::Row.new data["content"] end end def initialize content @content = content end def render @content end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
ledge-0.2.4 | lib/ledge/row.rb |
ledge-0.2.3 | lib/ledge/row.rb |
ledge-0.2.2 | lib/ledge/row.rb |
ledge-0.2.1 | lib/ledge/row.rb |
ledge-0.2.0 | lib/ledge/row.rb |
ledge-0.1.0 | lib/ledge/row.rb |