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.2.3.4 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.0.1 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.0 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.1.1 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.1 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.10 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.11.1 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.11.200907091518 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.11.3 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.11.5 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.11.6 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.11 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.2 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.3.1 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.3.2 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.3.3 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.3.4 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.3.5 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.3.6 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.3.3 lib/cucumber/ast/examples.rb