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
permalink #initialize(value, table, line) ⇒ Cell
Returns a new instance of Cell.
584 585 586 587 588 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 584 def initialize(value, table, line) @value = value @table = table @line = line end |
Instance Attribute Details
permalink #line ⇒ Object (readonly)
Returns the value of attribute line.
581 582 583 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 581 def line @line end |
permalink #status ⇒ Object
Returns the value of attribute status.
582 583 584 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 582 def status @status end |
permalink #table ⇒ Object (readonly)
Returns the value of attribute table.
581 582 583 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 581 def table @table end |
permalink #value ⇒ Object
Returns the value of attribute value.
582 583 584 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 582 def value @value end |
Instance Method Details
permalink #==(other) ⇒ Object
[View source] [View on GitHub]
594 595 596 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 594 def ==(other) other.class == SurplusCell || value == other.value end |
permalink #eql?(other) ⇒ Boolean
598 599 600 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 598 def eql?(other) self == other end |
permalink #hash ⇒ Object
[View source] [View on GitHub]
602 603 604 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 602 def hash 0 end |
permalink #inspect! ⇒ Object
[View source] [View on GitHub]
590 591 592 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 590 def inspect! @value = "(i) #{value.inspect}" end |
permalink #to_sexp ⇒ Object
For testing only
607 608 609 |
# File 'lib/cucumber/multiline_argument/data_table.rb', line 607 def to_sexp [:cell, @value] end |