Class: Cucumber::Ast::Table::Cell
Overview
:nodoc:
Direct Known Subclasses
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
- #==(o) ⇒ Object
- #accept(visitor) ⇒ Object
-
#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.
592 593 594 |
# File 'lib/cucumber/ast/table.rb', line 592 def initialize(value, table, line) @value, @table, @line = value, table, line end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
589 590 591 |
# File 'lib/cucumber/ast/table.rb', line 589 def line @line end |
#status ⇒ Object
Returns the value of attribute status.
590 591 592 |
# File 'lib/cucumber/ast/table.rb', line 590 def status @status end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
589 590 591 |
# File 'lib/cucumber/ast/table.rb', line 589 def table @table end |
#value ⇒ Object
Returns the value of attribute value.
590 591 592 |
# File 'lib/cucumber/ast/table.rb', line 590 def value @value end |
Instance Method Details
#==(o) ⇒ Object
605 606 607 |
# File 'lib/cucumber/ast/table.rb', line 605 def ==(o) SurplusCell === o || value == o.value end |
#accept(visitor) ⇒ Object
596 597 598 599 |
# File 'lib/cucumber/ast/table.rb', line 596 def accept(visitor) return if $cucumber_interrupted visitor.visit_table_cell_value(value, status) end |
#inspect! ⇒ Object
601 602 603 |
# File 'lib/cucumber/ast/table.rb', line 601 def inspect! @value = "(i) #{value.inspect}" end |
#to_sexp ⇒ Object
For testing only
610 611 612 |
# File 'lib/cucumber/ast/table.rb', line 610 def to_sexp #:nodoc: [:cell, @value] end |