class Gherkin::Dialect
Public Class Methods
for(name)
click to toggle source
# File lib/gherkin/dialect.rb, line 8 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 14 def initialize(spec) @spec = spec end
Public Instance Methods
and_keywords()
click to toggle source
# File lib/gherkin/dialect.rb, line 54 def and_keywords @spec.fetch('and') end
background_keywords()
click to toggle source
# File lib/gherkin/dialect.rb, line 38 def background_keywords @spec.fetch('background') end
but_keywords()
click to toggle source
# File lib/gherkin/dialect.rb, line 58 def but_keywords @spec.fetch('but') end
examples_keywords()
click to toggle source
# File lib/gherkin/dialect.rb, line 34 def examples_keywords @spec.fetch('examples') end
feature_keywords()
click to toggle source
# File lib/gherkin/dialect.rb, line 18 def feature_keywords @spec.fetch('feature') end
given_keywords()
click to toggle source
# File lib/gherkin/dialect.rb, line 42 def given_keywords @spec.fetch('given') end
rule_keywords()
click to toggle source
# File lib/gherkin/dialect.rb, line 22 def rule_keywords @spec.fetch('rule') end
scenario_keywords()
click to toggle source
# File lib/gherkin/dialect.rb, line 26 def scenario_keywords @spec.fetch('scenario') end
scenario_outline_keywords()
click to toggle source
# File lib/gherkin/dialect.rb, line 30 def scenario_outline_keywords @spec.fetch('scenarioOutline') end
then_keywords()
click to toggle source
# File lib/gherkin/dialect.rb, line 50 def then_keywords @spec.fetch('then') end
when_keywords()
click to toggle source
# File lib/gherkin/dialect.rb, line 46 def when_keywords @spec.fetch('when') end