Sha256: dde1e7834ef31411a729f5b9179468eb514bbbe1474856e67436666a40f7e4a1

Contents?: true

Size: 399 Bytes

Versions: 4

Compression:

Stored size: 399 Bytes

Contents

module TableGo
  class TableRenderer
    attr_accessor :renderer_klass, :template
    delegate      :apply_options, :render_template, :to => :renderer

    def initialize(source_table)
      @source_table = source_table
    end

    def renderer
      @renderer ||= renderer_klass.new.tap do |r|
        r.template     = template
        r.source_table = @source_table
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
table_go-0.2.2 lib/table_go/table_renderer.rb
table_go-0.2.1 lib/table_go/table_renderer.rb
table_go-0.2.0 lib/table_go/table_renderer.rb
table_go-0.1.9 lib/table_go/table_renderer.rb