class CukeModeler::Gherkin18Adapter
NOT A PART OF THE PUBLIC API An adapter that can convert the output of version 18.x of the cucumber-gherkin gem into input that is consumable by this gem.
Public Instance Methods
adapt_rule(rule_ast)
click to toggle source
Adapts the AST sub-tree that is rooted at the given rule node.
Calls superclass method
# File lib/cuke_modeler/adapters/gherkin_18_adapter.rb, line 12 def adapt_rule(rule_ast) adapted_rule = super(rule_ast) clear_child_elements(adapted_rule, [[:rule, :tags]]) # Tagging of Rules was added in Gherkin 18 adapted_rule['tags'] = adapt_tags(rule_ast[:rule]) adapted_rule end