Module: OpenStax::Utilities::Helpers::Blocks

Defined in:
lib/openstax/utilities/helpers/blocks.rb

Instance Method Summary collapse

Instance Method Details

#section_block(heading = nil, &block) ⇒ Object



7
8
9
# File 'lib/openstax/utilities/helpers/blocks.rb', line 7

def section_block(heading=nil, &block)
  presenter = OpenStax::Utilities::Blocks::SectionBlock.new(true_self, heading, block)
end

#table_block(&block) ⇒ Object



11
12
13
# File 'lib/openstax/utilities/helpers/blocks.rb', line 11

def table_block(&block)
  presenter = TableBlock.new(true_self, block)
end

#table_cell_block(&block) ⇒ Object



19
20
21
# File 'lib/openstax/utilities/helpers/blocks.rb', line 19

def table_cell_block(&block)
  presenter = TableCellBlock.new(true_self, block)
end

#table_row_block(&block) ⇒ Object



15
16
17
# File 'lib/openstax/utilities/helpers/blocks.rb', line 15

def table_row_block(&block)
  presenter = TableRowBlock.new(true_self, block)
end