Class: Boilerpipe::SAX::TagActions::InlineTagLabel
- Inherits:
-
Object
- Object
- Boilerpipe::SAX::TagActions::InlineTagLabel
- Defined in:
- lib/boilerpipe/sax/tag_actions/inline_tag_label.rb
Overview
for inline elements, which triggers some LabelAction on the generated TextBlock.
Instance Method Summary collapse
- #changes_tag_level? ⇒ Boolean
- #end_tag(handler, name) ⇒ Object
-
#initialize(label_action) ⇒ InlineTagLabel
constructor
A new instance of InlineTagLabel.
- #start(handler, name, attrs) ⇒ Object
Constructor Details
#initialize(label_action) ⇒ InlineTagLabel
Returns a new instance of InlineTagLabel.
5 6 7 |
# File 'lib/boilerpipe/sax/tag_actions/inline_tag_label.rb', line 5 def initialize(label_action) @label_action = label_action end |
Instance Method Details
#changes_tag_level? ⇒ Boolean
20 21 22 |
# File 'lib/boilerpipe/sax/tag_actions/inline_tag_label.rb', line 20 def changes_tag_level? false end |
#end_tag(handler, name) ⇒ Object
15 16 17 18 |
# File 'lib/boilerpipe/sax/tag_actions/inline_tag_label.rb', line 15 def end_tag(handler, name) handler.append_space false end |
#start(handler, name, attrs) ⇒ Object
9 10 11 12 13 |
# File 'lib/boilerpipe/sax/tag_actions/inline_tag_label.rb', line 9 def start(handler, name, attrs) handler.append_space handler.add_label_action(@label_action) false end |