Sha256: c36fdaeb6a6a955d0484437fa168ab6b0e7adb65b91c0d7abe5a60a282c3e894

Contents?: true

Size: 604 Bytes

Versions: 62

Compression:

Stored size: 604 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)
        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

62 entries across 62 versions & 7 rubygems

Version Path
aslakhellesoy-cucumber-0.3.4 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.5 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.6.1 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.7.1 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.7.2 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.7.3 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.7.4 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.7.5 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.7 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.8 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.9.1 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.9.2 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.9.3 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.9.4 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.9.5 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.9 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.90 lib/cucumber/ast/examples.rb
cavalle-cucumber-0.2.3.3.1 lib/cucumber/ast/examples.rb
cavalle-cucumber-0.2.3.3.2 lib/cucumber/ast/examples.rb
jwilger-cucumber-0.3.11.200906161550 lib/cucumber/ast/examples.rb