class Yari::Builder

Attributes

features[R]

Public Class Methods

build(file) click to toggle source
# File lib/yari/builder.rb, line 6
def self.build(file)
  parser = Gherkin::Parser.new
  token = Gherkin::TokenScanner.new(File.read(file))
  Yari::Builder.new(parser.parse(token))
end
new(feature_hash) click to toggle source
# File lib/yari/builder.rb, line 12
def initialize(feature_hash)
  @features ||= []
  @features << Feature.new(feature_hash)
end