class Nuke::ParsesFeatures
Public Instance Methods
parse(text)
click to toggle source
# File lib/nuke/parses_features.rb, line 14 def parse text io = StringIO.new formatter = Gherkin::Formatter::JSONFormatter.new(io) parser = Gherkin::Parser::Parser.new(formatter, false, 'root') begin parser.parse(text, nil, 0) rescue raise FeatureParseException.new end hash = formatter.to_hash hash end