Sha256: 74c07613d0cb7726ca9bdad56d6a049322f872929cd325ce6aec5b19c610b8fe

Contents?: true

Size: 398 Bytes

Versions: 10

Compression:

Stored size: 398 Bytes

Contents

module Boilerpipe::SAX::TagActions
  class IgnorableElement
    # Marks this tag as "ignorable", i.e. all its inner content is silently skipped.
    def start(handler, name, attrs)
      handler.increase_in_ignorable_element!
      true
    end

    def end_tag(handler, name)
      handler.decrease_in_ignorable_element!
      true
    end

    def changes_tag_level?
      true
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
boilerpipe-ruby-0.5.0 lib/boilerpipe/sax/tag_actions/ignorable_element.rb
boilerpipe-ruby-0.4.4 lib/boilerpipe/sax/tag_actions/ignorable_element.rb
boilerpipe-ruby-0.4.3 lib/boilerpipe/sax/tag_actions/ignorable_element.rb
boilerpipe-ruby-0.4.2 lib/boilerpipe/sax/tag_actions/ignorable_element.rb
boilerpipe-ruby-0.4.1 lib/boilerpipe/sax/tag_actions/ignorable_element.rb
boilerpipe-ruby-0.4.0 lib/boilerpipe/sax/tag_actions/ignorable_element.rb
boilerpipe-ruby-0.3.0 lib/boilerpipe/sax/tag_actions/ignorable_element.rb
boilerpipe-ruby-0.2.0 lib/boilerpipe/sax/tag_actions/ignorable_element.rb
boilerpipe-ruby-0.1.1 lib/boilerpipe/sax/tag_actions/ignorable_element.rb
boilerpipe-ruby-0.1.0 lib/boilerpipe/sax/tag_actions/ignorable_element.rb