Class: Cucumber::Core::Ast::DataTable::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/core/ast/data_table.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lineObject (readonly)

Returns the value of attribute line.



303
304
305
# File 'lib/cucumber/core/ast/data_table.rb', line 303

def line
  @line
end

#statusObject

Returns the value of attribute status.



304
305
306
# File 'lib/cucumber/core/ast/data_table.rb', line 304

def status
  @status
end

#tableObject (readonly)

Returns the value of attribute table.



303
304
305
# File 'lib/cucumber/core/ast/data_table.rb', line 303

def table
  @table
end

#valueObject

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_sexpObject

For testing only



315
316
317
# File 'lib/cucumber/core/ast/data_table.rb', line 315

def to_sexp #:nodoc:
  [:cell, @value]
end