Method: Cucumber::FeatureFile#parse

Defined in:
lib/cucumber/feature_file.rb

#parse(options = {}) ⇒ Object

Parses a file and returns a Cucumber::Ast If options contains tags, the result will be filtered.



23
24
25
26
27
# File 'lib/cucumber/feature_file.rb', line 23

def parse(options={})
  filter = Filter.new(@lines, options)
  language = Parser::I18n::Language[lang || options[:lang] || 'en']
  language.parse(source, @path, filter)
end