class Gherkin::Dialect
Public Class Methods
Source
# File lib/gherkin/dialect.rb, line 8 def self.for(name) spec = DIALECTS[name] return nil unless spec new(spec) end
Public Instance Methods
Source
# File lib/gherkin/dialect.rb, line 54 def and_keywords @spec.fetch('and') end
Source
# File lib/gherkin/dialect.rb, line 38 def background_keywords @spec.fetch('background') end
Source
# File lib/gherkin/dialect.rb, line 58 def but_keywords @spec.fetch('but') end
Source
# File lib/gherkin/dialect.rb, line 34 def examples_keywords @spec.fetch('examples') end
Source
# File lib/gherkin/dialect.rb, line 18 def feature_keywords @spec.fetch('feature') end
Source
# File lib/gherkin/dialect.rb, line 42 def given_keywords @spec.fetch('given') end
Source
# File lib/gherkin/dialect.rb, line 22 def rule_keywords @spec.fetch('rule') end
Source
# File lib/gherkin/dialect.rb, line 26 def scenario_keywords @spec.fetch('scenario') end
Source
# File lib/gherkin/dialect.rb, line 30 def scenario_outline_keywords @spec.fetch('scenarioOutline') end
Source
# File lib/gherkin/dialect.rb, line 50 def then_keywords @spec.fetch('then') end
Source
# File lib/gherkin/dialect.rb, line 46 def when_keywords @spec.fetch('when') end