Module: CukeTagger::TagFormatter
- Defined in:
- lib/cuketagger/tag_formatter.rb
Instance Attribute Summary collapse
-
#tagger ⇒ Object
Returns the value of attribute tagger.
Instance Method Summary collapse
- #after_feature_element(element) ⇒ Object
- #before_feature(feature) ⇒ Object
- #before_feature_element(element) ⇒ Object
- #before_tags(tags) ⇒ Object
Instance Attribute Details
#tagger ⇒ Object
Returns the value of attribute tagger.
3 4 5 |
# File 'lib/cuketagger/tag_formatter.rb', line 3 def tagger @tagger end |
Instance Method Details
#after_feature_element(element) ⇒ Object
15 16 17 18 |
# File 'lib/cuketagger/tag_formatter.rb', line 15 def after_feature_element(element) @__current_element = nil super end |
#before_feature(feature) ⇒ Object
5 6 7 8 |
# File 'lib/cuketagger/tag_formatter.rb', line 5 def before_feature(feature) @__current_feature = feature super end |
#before_feature_element(element) ⇒ Object
10 11 12 13 |
# File 'lib/cuketagger/tag_formatter.rb', line 10 def before_feature_element(element) @__current_element = element super end |
#before_tags(tags) ⇒ Object
20 21 22 |
# File 'lib/cuketagger/tag_formatter.rb', line 20 def () @tagger.process(@__current_feature, @__current_element, .instance_variable_get("@tag_names")) end |