Class: Cucumber::Core::Ast::DataTable::Cell
- Inherits:
-
Object
- Object
- Cucumber::Core::Ast::DataTable::Cell
- Defined in:
- lib/cucumber/core/ast/data_table.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#status ⇒ Object
Returns the value of attribute status.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, table, line) ⇒ Cell
constructor
A new instance of Cell.
- #inspect! ⇒ Object
-
#to_sexp ⇒ Object
For testing only.
Constructor Details
#initialize(value, table, line) ⇒ Cell
Returns a new instance of Cell.
306 307 308 |
# File 'lib/cucumber/core/ast/data_table.rb', line 306 def initialize(value, table, line) @value, @table, @line = value, table, line end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
303 304 305 |
# File 'lib/cucumber/core/ast/data_table.rb', line 303 def line @line end |
#status ⇒ Object
Returns the value of attribute status.
304 305 306 |
# File 'lib/cucumber/core/ast/data_table.rb', line 304 def status @status end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
303 304 305 |
# File 'lib/cucumber/core/ast/data_table.rb', line 303 def table @table end |
#value ⇒ Object
Returns the value of attribute value.
304 305 306 |
# File 'lib/cucumber/core/ast/data_table.rb', line 304 def value @value end |
Instance Method Details
#inspect! ⇒ Object
310 311 312 |
# File 'lib/cucumber/core/ast/data_table.rb', line 310 def inspect! @value = "(i) #{value.inspect}" end |
#to_sexp ⇒ Object
For testing only
315 316 317 |
# File 'lib/cucumber/core/ast/data_table.rb', line 315 def to_sexp #:nodoc: [:cell, @value] end |