Method: Rubyword::Element::Section#table

Defined in:
lib/rubyword/element/section.rb

#table(style = nil, &block) ⇒ Object



31
32
33
34
35
36
# File 'lib/rubyword/element/section.rb', line 31

def table(style=nil, &block)
  object ||= Table.new(@rubyword, self, style)
  return nil unless block_given?
  object.instance_eval(&block)
  @objects << object
end