Sha256: ea2898571c11cfa6818e16003797ab857ff79b090cb7f5dabbd08d9cd77c2588
Contents?: true
Size: 458 Bytes
Versions: 3
Compression:
Stored size: 458 Bytes
Contents
require "gherkin" require 'turnip/node/feature' module Turnip class Builder def self.build(feature_file) messages = Gherkin.from_paths( [feature_file], include_source: false, include_gherkin_document: true, include_pickles: false ) result = messages.first&.gherkin_document&.to_hash return nil if result.nil? || result[:feature].nil? Node::Feature.new(result[:feature]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
turnip-4.3.0 | lib/turnip/builder.rb |
turnip-4.2.0 | lib/turnip/builder.rb |
turnip-4.1.0 | lib/turnip/builder.rb |