module CucumberFM::FeatureElement::Component::Tags
Constants
- LINE_PATTERN
- PATTERN
- STATUS_COMPLETE
- TAG_PATTERN
- TECHNICAL
Public Instance Methods
done?()
click to toggle source
# File lib/cucumber_f_m/feature_element/component/tags.rb, line 51 def done? STATUS_COMPLETE.include?(status) end
estimation()
click to toggle source
# File lib/cucumber_f_m/feature_element/component/tags.rb, line 56 def estimation effort ? effort.gsub('@', '').to_f : 0.0 end
value()
click to toggle source
# File lib/cucumber_f_m/feature_element/component/tags.rb, line 60 def value benefit ? benefit.gsub('@_', '').to_i : 0 end
Private Instance Methods
detect_type(tag)
click to toggle source
# File lib/cucumber_f_m/feature_element/component/tags.rb, line 92 def detect_type tag PATTERN.invert.each_pair do |pattern, type| return(type) if tag =~ pattern end end
find(type, collection = tags)
click to toggle source
# File lib/cucumber_f_m/feature_element/component/tags.rb, line 86 def find type, collection = tags collection.detect do |tag| !TECHNICAL.include?(tag) and tag =~ PATTERN[type] end end
method_missing(m, *args, &block)
click to toggle source
Calls superclass method
# File lib/cucumber_f_m/feature_element/component/tags.rb, line 98 def method_missing(m, *args, &block) if PATTERN.has_key?(m.to_sym) find(m.to_sym) else super end end