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.
193 194 195 |
# File 'lib/cucumber/ast/table.rb', line 193 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.
191 192 193 |
# File 'lib/cucumber/ast/table.rb', line 191 def line @line end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
191 192 193 |
# File 'lib/cucumber/ast/table.rb', line 191 def value @value end |
Instance Method Details
#accept(visitor, status) ⇒ Object
197 198 199 |
# File 'lib/cucumber/ast/table.rb', line 197 def accept(visitor, status) visitor.visit_table_cell_value(@value, col_width, status) end |
#to_sexp ⇒ Object
For testing only
202 203 204 |
# File 'lib/cucumber/ast/table.rb', line 202 def to_sexp #:nodoc: [:cell, @value] end |