Sha256: 2b9a6a516a07c2ee976978d59c07d8f449fe99e6e9656af71c998efd267b3269

Contents?: true

Size: 437 Bytes

Versions: 5

Compression:

Stored size: 437 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.5.0 lib/boilerpipe/sax/tag_actions/block_tag_label.rb
boilerpipe-ruby-0.4.4 lib/boilerpipe/sax/tag_actions/block_tag_label.rb
boilerpipe-ruby-0.4.3 lib/boilerpipe/sax/tag_actions/block_tag_label.rb
boilerpipe-ruby-0.4.2 lib/boilerpipe/sax/tag_actions/block_tag_label.rb
boilerpipe-ruby-0.4.1 lib/boilerpipe/sax/tag_actions/block_tag_label.rb