Class: Boilerpipe::SAX::TagActions::Body

Inherits:
Object
  • Object
show all
Defined in:
lib/boilerpipe/sax/tag_actions/body.rb

Overview

Marks this tag the body element (this should usually only be set for the <BODY> tag).

Instance Method Summary collapse

Instance Method Details

#changes_tag_level?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/boilerpipe/sax/tag_actions/body.rb', line 17

def changes_tag_level?
  true
end

#end_tag(handler, name) ⇒ Object



11
12
13
14
15
# File 'lib/boilerpipe/sax/tag_actions/body.rb', line 11

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

#start(handler, name, attrs) ⇒ Object



5
6
7
8
9
# File 'lib/boilerpipe/sax/tag_actions/body.rb', line 5

def start(handler, name, attrs)
  handler.flush_block
  handler.increase_in_body!
  false
end