Sha256: 8b5482bfb3c3f68a00b31b20f60e7d8fce257455ad157cdb740fc9d4f106c285

Contents?: true

Size: 425 Bytes

Versions: 5

Compression:

Stored size: 425 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

5 entries across 5 versions & 1 rubygems

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