class Gherkin::Dialect

Public Class Methods

for(name) click to toggle source
# File lib/gherkin/dialect.rb, line 9
def self.for(name)
  spec = DIALECTS[name]
  return nil unless spec
  new(spec)
end
new(spec) click to toggle source
# File lib/gherkin/dialect.rb, line 15
def initialize(spec)
  @spec = spec
end

Public Instance Methods

and_keywords() click to toggle source
# File lib/gherkin/dialect.rb, line 55
def and_keywords
  @spec.fetch('and')
end
background_keywords() click to toggle source
# File lib/gherkin/dialect.rb, line 39
def background_keywords
  @spec.fetch('background')
end
but_keywords() click to toggle source
# File lib/gherkin/dialect.rb, line 59
def but_keywords
  @spec.fetch('but')
end
examples_keywords() click to toggle source
# File lib/gherkin/dialect.rb, line 35
def examples_keywords
  @spec.fetch('examples')
end
feature_keywords() click to toggle source
# File lib/gherkin/dialect.rb, line 19
def feature_keywords
  @spec.fetch('feature')
end
given_keywords() click to toggle source
# File lib/gherkin/dialect.rb, line 43
def given_keywords
  @spec.fetch('given')
end
rule_keywords() click to toggle source
# File lib/gherkin/dialect.rb, line 23
def rule_keywords
  @spec.fetch('rule')
end
scenario_keywords() click to toggle source
# File lib/gherkin/dialect.rb, line 27
def scenario_keywords
  @spec.fetch('scenario')
end
scenario_outline_keywords() click to toggle source
# File lib/gherkin/dialect.rb, line 31
def scenario_outline_keywords
  @spec.fetch('scenarioOutline')
end
then_keywords() click to toggle source
# File lib/gherkin/dialect.rb, line 51
def then_keywords
  @spec.fetch('then')
end
when_keywords() click to toggle source
# File lib/gherkin/dialect.rb, line 47
def when_keywords
  @spec.fetch('when')
end