module Gherkin
Constants
- DEFAULT_OPTIONS
- DIALECTS
- DIALECT_FILE_PATH
- RULE_TYPE
Public Class Methods
Source
# File lib/gherkin.rb, line 32 def self.encode_source_message(uri, data) Cucumber::Messages::Source.new( uri: uri, data: data, media_type: 'text/x.cucumber.gherkin+plain' ) end
Source
# File lib/gherkin.rb, line 12 def self.from_paths(paths, options = {}) Stream::ParserMessageStream.new( paths, [], options ).messages end
Source
# File lib/gherkin.rb, line 28 def self.from_source(uri, data, options = {}) from_sources([encode_source_message(uri, data)], options) end
Source
# File lib/gherkin.rb, line 20 def self.from_sources(sources, options = {}) Stream::ParserMessageStream.new( [], sources, options ).messages end