Sha256: 56eada69780ace900f93325a50e34b91a6184bfb9df4ff5593ce40abee749d89

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 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.enter_body_tag!
      false
    end

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

    def changes_tag_level?
      true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
boilerpipe-ruby-0.5.0 lib/boilerpipe/sax/tag_actions/body.rb