Module: INat::Report::Table::DSL

Includes:
INat::Report
Included in:
App::Task::Context, DSL
Defined in:
lib/inat/report/table.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.table(&block) ⇒ Object



135
136
137
138
139
# File 'lib/inat/report/table.rb', line 135

def table &block
  tbl = Table::new
  tbl.instance_eval(&block) if block_given?
  tbl
end

Instance Method Details

#table(&block) ⇒ Object (private)



135
136
137
138
139
# File 'lib/inat/report/table.rb', line 135

def table &block
  tbl = Table::new
  tbl.instance_eval(&block) if block_given?
  tbl
end