Class: Cucumber::Ast::Examples
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #each_example_row(&proc) ⇒ Object
-
#initialize(line, keyword, name, outline_table) ⇒ Examples
constructor
A new instance of Examples.
- #skip_invoke! ⇒ Object
- #to_sexp ⇒ Object
Constructor Details
#initialize(line, keyword, name, outline_table) ⇒ Examples
Returns a new instance of Examples.
4 5 6 |
# File 'lib/cucumber/ast/examples.rb', line 4 def initialize(line, keyword, name, outline_table) @keyword, @name, @outline_table = keyword, name, outline_table end |
Instance Method Details
#accept(visitor) ⇒ Object
8 9 10 11 |
# File 'lib/cucumber/ast/examples.rb', line 8 def accept(visitor) visitor.visit_examples_name(@keyword, @name) visitor.visit_outline_table(@outline_table) end |
#each_example_row(&proc) ⇒ Object
17 18 19 |
# File 'lib/cucumber/ast/examples.rb', line 17 def each_example_row(&proc) @outline_table.cells_rows[1..-1].each(&proc) end |
#skip_invoke! ⇒ Object
13 14 15 |
# File 'lib/cucumber/ast/examples.rb', line 13 def skip_invoke! @outline_table.skip_invoke! end |
#to_sexp ⇒ Object
21 22 23 |
# File 'lib/cucumber/ast/examples.rb', line 21 def to_sexp [:examples, @keyword, @name, @outline_table.to_sexp] end |