Sha256: c571f86c8e21954a102216a9f19568ff7bcec0991113af5e3cb7e58bac9eea87

Contents?: true

Size: 335 Bytes

Versions: 1

Compression:

Stored size: 335 Bytes

Contents

class Report
  class Table
    attr_reader :name
    def initialize(name, &blk)
      @name = name
      instance_eval(&blk)
    end
    def body(&blk)
      @body = Body.new(self, &blk)
    end
    def head(&blk)
      @head = Head.new(self, &blk)
    end
    def _head
      @head
    end
    def _body
      @body
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
report-0.0.1 lib/report/table.rb