Sha256: ee1563177868df24c88122860390299edd35ec676328a98f56da4aaba8199716
Contents?: true
Size: 349 Bytes
Versions: 4
Compression:
Stored size: 349 Bytes
Contents
module TableGo class TableRenderer attr_accessor :renderer_klass, :template delegate :render_template, :to => :renderer def initialize(table) @table = table end def renderer @renderer ||= renderer_klass.new.tap do |r| r.template = template r.table = @table end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
table_go-0.2.6 | lib/table_go/table_renderer.rb |
table_go-0.2.5 | lib/table_go/table_renderer.rb |
table_go-0.2.4 | lib/table_go/table_renderer.rb |
table_go-0.2.3 | lib/table_go/table_renderer.rb |