Sha256: d0ceafc569ac0f23989eeb462103f7d8935d243e263865337604ea93291de63b

Contents?: true

Size: 644 Bytes

Versions: 21

Compression:

Stored size: 644 Bytes

Contents

module Cucumber
  module Ast
    class Examples
      def initialize(line, keyword, name, outline_table)
        @keyword, @name, @outline_table = keyword, name, outline_table
      end

      def accept(visitor)
        return if $cucumber_interrupted
        visitor.visit_examples_name(@keyword, @name)
        visitor.visit_outline_table(@outline_table)
      end

      def skip_invoke!
        @outline_table.skip_invoke!
      end

      def each_example_row(&proc)
        @outline_table.cells_rows[1..-1].each(&proc)
      end

      def to_sexp
        [:examples, @keyword, @name, @outline_table.to_sexp]
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 5 rubygems

Version Path
aslakhellesoy-cucumber-0.3.92 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.93.1 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.93 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.94.1 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.94 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.95 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.96 lib/cucumber/ast/examples.rb
kosmas58-cucumber-0.3.92 lib/cucumber/ast/examples.rb
kosmas58-cucumber-0.3.93.1 lib/cucumber/ast/examples.rb
kosmas58-cucumber-0.3.94 lib/cucumber/ast/examples.rb
kosmas58-cucumber-0.3.95 lib/cucumber/ast/examples.rb
kosmas58-cucumber-0.3.96 lib/cucumber/ast/examples.rb
pezra-cucumber-0.3.94.1 lib/cucumber/ast/examples.rb
square-cucumber-0.3.93.1.1 lib/cucumber/ast/examples.rb
square-cucumber-0.3.93.1 lib/cucumber/ast/examples.rb
cucumber-0.3.96 lib/cucumber/ast/examples.rb
cucumber-0.3.95 lib/cucumber/ast/examples.rb
cucumber-0.3.94 lib/cucumber/ast/examples.rb
cucumber-0.3.91 lib/cucumber/ast/examples.rb
cucumber-0.3.92 lib/cucumber/ast/examples.rb