Sha256: 1e7341610030da9eaed002937266e298d44e94d5486d4e3d9d6e718264998339

Contents?: true

Size: 433 Bytes

Versions: 5

Compression:

Stored size: 433 Bytes

Contents

module Boilerpipe::SAX::TagActions
# for block-level elements, which triggers some LabelAction on
# the generated TextBlock.
  class BlockTagLabel
    def initialize(label_action)
      @label_action = label_action
    end

    def start(handler, name, attrs)
      handler.add_label_action(@label_action)
      true
    end

    def end_tag(handler, name)
      true
    end

    def changes_tag_level?
      true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
boilerpipe-ruby-0.4.0 lib/boilerpipe/sax/tag_actions/block_tag_label.rb
boilerpipe-ruby-0.3.0 lib/boilerpipe/sax/tag_actions/block_tag_label.rb
boilerpipe-ruby-0.2.0 lib/boilerpipe/sax/tag_actions/block_tag_label.rb
boilerpipe-ruby-0.1.1 lib/boilerpipe/sax/tag_actions/block_tag_label.rb
boilerpipe-ruby-0.1.0 lib/boilerpipe/sax/tag_actions/block_tag_label.rb