Module: Gherkin
- Defined in:
- lib/gherkin.rb,
lib/gherkin/token.rb,
lib/gherkin/errors.rb,
lib/gherkin/parser.rb,
lib/gherkin/dialect.rb,
lib/gherkin/ast_node.rb,
lib/gherkin/ast_builder.rb,
lib/gherkin/gherkin_line.rb,
lib/gherkin/token_matcher.rb,
lib/gherkin/token_scanner.rb,
lib/gherkin/pickles/compiler.rb,
lib/gherkin/token_formatter_builder.rb,
lib/gherkin/stream/parser_message_stream.rb,
lib/gherkin/stream/subprocess_message_stream.rb
Defined Under Namespace
Modules: Pickles, Stream
Classes: AstBuilder, AstBuilderException, AstNode, CompositeParserException, Dialect, GherkinLine, NoSuchLanguageException, Parser, ParserContext, ParserError, ParserException, Token, TokenFormatterBuilder, TokenMatcher, TokenScanner, UnexpectedEOFException, UnexpectedTokenException
Constant Summary
collapse
- DEFAULT_OPTIONS =
{
include_source: true,
include_gherkin_document: true,
include_pickles: true
}.freeze
- RULE_TYPE =
[
:None,
:_EOF, :_Empty, :_Comment, :_TagLine, :_FeatureLine, :_RuleLine, :_BackgroundLine, :_ScenarioLine, :_ExamplesLine, :_StepLine, :_DocStringSeparator, :_TableRow, :_Language, :_Other, :GherkinDocument, :Feature, :FeatureHeader, :Rule, :RuleHeader, :Background, :ScenarioDefinition, :Scenario, :ExamplesDefinition, :Examples, :ExamplesTable, :Step, :StepArg, :DataTable, :DocString, :Tags, :DescriptionHelper, :Description, ]
- DIALECT_FILE_PATH =
File.expand_path("gherkin-languages.json", File.dirname(__FILE__))
- DIALECTS =
JSON.parse File.open(DIALECT_FILE_PATH, 'r:UTF-8').read
Class Method Summary
collapse
Class Method Details
.from_paths(paths, options = {}) ⇒ Object
.from_source(uri, data, options = {}) ⇒ Object
26
27
28
|
# File 'lib/gherkin.rb', line 26
def self.from_source(uri, data, options={})
from_sources([encode_source_message(uri, data)], options)
end
|
.from_sources(sources, options = {}) ⇒ Object