Sha256: 580790690c7d58e678cdd16c6e50872976ea1672be6a6c03c66f3a85a620e7c9

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

module Boilerpipe::SAX::TagActions
  # Marks this tag the body element (this should usually only
  # be set for the <BODY> tag).
  class Body
    def start(handler, name, attrs)
      handler.flush_block
      handler.increase_in_body!
      false
    end

    def end_tag(handler, name)
      handler.flush_block
      handler.decrease_in_body!
      false
    end

    def changes_tag_level?
      true
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
boilerpipe-ruby-0.4.4 lib/boilerpipe/sax/tag_actions/body.rb
boilerpipe-ruby-0.4.3 lib/boilerpipe/sax/tag_actions/body.rb
boilerpipe-ruby-0.4.2 lib/boilerpipe/sax/tag_actions/body.rb
boilerpipe-ruby-0.4.1 lib/boilerpipe/sax/tag_actions/body.rb