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