Sha256: f980f22df20fa9ee1d269dc364568893a16e4ef00d62460c56605b2fa17f06c2

Contents?: true

Size: 634 Bytes

Versions: 5

Compression:

Stored size: 634 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)
        @outline_table.accept(visitor, nil)
      end

      def each_example_row(&proc)
        @outline_table.each_cells_row(&proc)
      end

      def at_lines?(lines)
        lines.empty? || lines.index(@line) || @outline_table.at_lines?(lines)
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aslakhellesoy-cucumber-0.1.99.14 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.1.99.15 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.1.99.17 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.1.99.18 lib/cucumber/ast/examples.rb
aslakhellesoy-cucumber-0.1.99.19 lib/cucumber/ast/examples.rb