Module: CukeTagger::TagFormatter

Defined in:
lib/cuketagger/tag_formatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#taggerObject

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 before_tags(tags)
  @tagger.process(@__current_feature, @__current_element, tags.instance_variable_get("@tag_names"))
end