Class: CSVPlusPlus::Language::Entities::CellReference

Inherits:
Entity
  • Object
show all
Defined in:
lib/csv_plus_plus/language/entities/cell_reference.rb

Overview

A reference to a cell

Instance Attribute Summary collapse

Attributes inherited from Entity

#id, #type

Instance Method Summary collapse

Methods inherited from Entity

#==, #method_missing, #respond_to_missing?

Constructor Details

#initialize(cell_reference) ⇒ CellReference

initialize



14
15
16
17
# File 'lib/csv_plus_plus/language/entities/cell_reference.rb', line 14

def initialize(cell_reference)
  super(:cell_reference)
  @cell_reference = cell_reference
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class CSVPlusPlus::Language::Entities::Entity

Instance Attribute Details

#cell_referenceObject (readonly)

Returns the value of attribute cell_reference.



11
12
13
# File 'lib/csv_plus_plus/language/entities/cell_reference.rb', line 11

def cell_reference
  @cell_reference
end

Instance Method Details

#to_sObject

to_s



20
21
22
# File 'lib/csv_plus_plus/language/entities/cell_reference.rb', line 20

def to_s
  @cell_reference
end