Class: Cucumber::Ast::Table::Cell
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#status ⇒ Object
writeonly
Sets the attribute status.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #header_cell ⇒ 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.
301 302 303 |
# File 'lib/cucumber/ast/table.rb', line 301 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.
298 299 300 |
# File 'lib/cucumber/ast/table.rb', line 298 def line @line end |
#status=(value) ⇒ Object (writeonly)
Sets the attribute status
299 300 301 |
# File 'lib/cucumber/ast/table.rb', line 299 def status=(value) @status = value end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
298 299 300 |
# File 'lib/cucumber/ast/table.rb', line 298 def value @value end |
Instance Method Details
#accept(visitor) ⇒ Object
305 306 307 |
# File 'lib/cucumber/ast/table.rb', line 305 def accept(visitor) visitor.visit_table_cell_value(@value, col_width, @status) end |
#header_cell ⇒ Object
309 310 311 |
# File 'lib/cucumber/ast/table.rb', line 309 def header_cell @table.header_cell(@col) end |
#to_sexp ⇒ Object
For testing only
314 315 316 |
# File 'lib/cucumber/ast/table.rb', line 314 def to_sexp #:nodoc: [:cell, @value] end |