Sha256: f5e5b0659b91cccd8a46baf60cff01e41515a884aeec392092e455237ae563d8
Contents?: true
Size: 416 Bytes
Versions: 12
Compression:
Stored size: 416 Bytes
Contents
def init super @tag = object sections.push :tag sections.push :feature unless @tag.features.empty? sections.push :scenario unless @tag.scenarios.empty? end def all_features_by_letter hash = {} @tag.features.each {|o| (hash[o.value.to_s[0,1].upcase] ||= []) << o } hash end def all_scenarios_by_letter hash = {} @tag.scenarios.each {|o| (hash[o.value.to_s[0,1].upcase] ||= []) << o } hash end
Version data entries
12 entries across 12 versions & 1 rubygems