Class: Cucumber::MultilineArgument::DataTable::Cell
- Inherits:
-
Object
- Object
- Cucumber::MultilineArgument::DataTable::Cell
- Defined in:
- lib/cucumber/multiline_argument/data_table.rb
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
- #eql?(o) ⇒ 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.
565 566 567 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 565 def initialize(value, table, line) @value, @table, @line = value, table, line end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
562 563 564 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 562 def line @line end |
#status ⇒ Object
Returns the value of attribute status.
563 564 565 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 563 def status @status end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
562 563 564 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 562 def table @table end |
#value ⇒ Object
Returns the value of attribute value.
563 564 565 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 563 def value @value end |
Instance Method Details
#==(o) ⇒ Object
573 574 575 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 573 def ==(o) SurplusCell === o || value == o.value end |
#eql?(o) ⇒ Boolean
577 578 579 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 577 def eql?(o) self == o end |
#hash ⇒ Object
581 582 583 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 581 def hash 0 end |
#inspect! ⇒ Object
569 570 571 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 569 def inspect! @value = "(i) #{value.inspect}" end |
#to_sexp ⇒ Object
For testing only
586 587 588 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 586 def to_sexp #:nodoc: [:cell, @value] end |