Sha256: db1a64bb8f81831b3ca4d265c15ac3d19ec13ef337e4ee733daf043d79137528

Contents?: true

Size: 635 Bytes

Versions: 12

Compression:

Stored size: 635 Bytes

Contents

# Copyright 2011-2013 Rice University. Licensed under the Affero General Public 
# License version 3 or later.  See the COPYRIGHT file for details.

module OpenStax::Utilities::Helpers
  module Blocks

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

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

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

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

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
openstax_utilities-2.2.3 lib/openstax/utilities/helpers/blocks.rb
openstax_utilities-2.2.2 lib/openstax/utilities/helpers/blocks.rb
openstax_utilities-2.2.1 lib/openstax/utilities/helpers/blocks.rb
openstax_utilities-2.2.0 lib/openstax/utilities/helpers/blocks.rb
openstax_utilities-2.1.0 lib/openstax/utilities/helpers/blocks.rb
openstax_utilities-2.0.0 lib/openstax/utilities/helpers/blocks.rb
openstax_utilities-1.3.0 lib/openstax/utilities/helpers/blocks.rb
openstax_utilities-1.2.0 lib/openstax/utilities/helpers/blocks.rb
openstax_utilities-1.1.0 lib/openstax/utilities/helpers/blocks.rb
openstax_utilities-1.0.2 lib/openstax/utilities/helpers/blocks.rb
openstax_utilities-1.0.1 lib/openstax/utilities/helpers/blocks.rb
openstax_utilities-1.0.0 lib/openstax/utilities/helpers/blocks.rb