Class: Cucumber::MultilineArgument::DataTable::Cell
- Inherits:
-
Object
- Object
- Cucumber::MultilineArgument::DataTable::Cell
- Defined in:
- lib/cucumber/multiline_argument/data_table.rb
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
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ 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.
590 591 592 593 594 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 590 def initialize(value, table, line) @value = value @table = table @line = line end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
587 588 589 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 587 def line @line end |
#status ⇒ Object
Returns the value of attribute status.
588 589 590 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 588 def status @status end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
587 588 589 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 587 def table @table end |
#value ⇒ Object
Returns the value of attribute value.
588 589 590 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 588 def value @value end |
Instance Method Details
#==(other) ⇒ Object
600 601 602 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 600 def ==(other) other.class == SurplusCell || value == other.value end |
#eql?(other) ⇒ Boolean
604 605 606 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 604 def eql?(other) self == other end |
#hash ⇒ Object
608 609 610 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 608 def hash 0 end |
#inspect! ⇒ Object
596 597 598 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 596 def inspect! @value = "(i) #{value.inspect}" end |
#to_sexp ⇒ Object
For testing only
613 614 615 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 613 def to_sexp [:cell, @value] end |