Class: Cucumber::Ast::Table::Cell
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #accept(visitor, status) ⇒ Object
-
#initialize(value, table, row, col, line) ⇒ Cell
constructor
A new instance of Cell.
-
#to_sexp ⇒ Object
For testing only.
Constructor Details
#initialize(value, table, row, col, line) ⇒ Cell
Returns a new instance of Cell.
269 270 271 |
# File 'lib/cucumber/ast/table.rb', line 269 def initialize(value, table, row, col, line) @value, @table, @row, @col, @line = value, table, row, col, line end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
267 268 269 |
# File 'lib/cucumber/ast/table.rb', line 267 def line @line end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
267 268 269 |
# File 'lib/cucumber/ast/table.rb', line 267 def value @value end |
Instance Method Details
#accept(visitor, status) ⇒ Object
273 274 275 |
# File 'lib/cucumber/ast/table.rb', line 273 def accept(visitor, status) visitor.visit_table_cell_value(@value, col_width, status) end |
#to_sexp ⇒ Object
For testing only
278 279 280 |
# File 'lib/cucumber/ast/table.rb', line 278 def to_sexp #:nodoc: [:cell, @value] end |