Sha256: 909f5c6ff9cf02cf9e11f6f988ed284265ca00d4bb069ddcb88f0721a438b3bc

Contents?: true

Size: 464 Bytes

Versions: 4

Compression:

Stored size: 464 Bytes

Contents

%w{features feature scenario step table top_down_visitor}.each{|f| require "cucumber/tree/#{f}"}
require 'cucumber/core_ext/proc'
require 'cucumber/core_ext/string'

module Cucumber
  module Tree
    def Feature(header, &proc)
      feature = Feature.new("Feature: " + header, &proc)
      feature.file, _, _ = *caller[0].split(':')
      features << feature
      feature
    end

    def features #:nodoc:
      @features ||= Tree::Features.new
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aslakhellesoy-cucumber-0.1.1 lib/cucumber/tree.rb
aslakhellesoy-cucumber-0.1.2 lib/cucumber/tree.rb
aslakhellesoy-cucumber-0.1.3 lib/cucumber/tree.rb
aslakhellesoy-cucumber-0.1.4 lib/cucumber/tree.rb