Class: Boilerpipe::SAX::TagActions::BlockTagLabel
- Inherits:
-
Object
- Object
- Boilerpipe::SAX::TagActions::BlockTagLabel
- Defined in:
- lib/boilerpipe/sax/tag_actions/block_tag_label.rb
Overview
the generated TextBlock.
Instance Method Summary collapse
- #changes_tag_level? ⇒ Boolean
- #end_tag(handler, name) ⇒ Object
-
#initialize(label_action) ⇒ BlockTagLabel
constructor
A new instance of BlockTagLabel.
- #start(handler, name, attrs) ⇒ Object
Constructor Details
#initialize(label_action) ⇒ BlockTagLabel
Returns a new instance of BlockTagLabel.
5 6 7 |
# File 'lib/boilerpipe/sax/tag_actions/block_tag_label.rb', line 5 def initialize(label_action) @label_action = label_action end |
Instance Method Details
#changes_tag_level? ⇒ Boolean
18 19 20 |
# File 'lib/boilerpipe/sax/tag_actions/block_tag_label.rb', line 18 def changes_tag_level? true end |
#end_tag(handler, name) ⇒ Object
14 15 16 |
# File 'lib/boilerpipe/sax/tag_actions/block_tag_label.rb', line 14 def end_tag(handler, name) true end |
#start(handler, name, attrs) ⇒ Object
9 10 11 12 |
# File 'lib/boilerpipe/sax/tag_actions/block_tag_label.rb', line 9 def start(handler, name, attrs) handler.add_label_action(@label_action) true end |