Class: RobustExcelOle::Cell
- Defined in:
- lib/robust_excel_ole/cell.rb
Instance Attribute Summary collapse
-
#cell ⇒ Object
readonly
Returns the value of attribute cell.
Instance Method Summary collapse
-
#initialize(win32_cell) ⇒ Cell
constructor
A new instance of Cell.
-
#method_missing(id, *args) ⇒ Object
:nodoc: #.
Methods inherited from REOCommon
#excel, #own_methods, puts_hash, tr1, trace
Constructor Details
#initialize(win32_cell) ⇒ Cell
Returns a new instance of Cell.
7 8 9 10 11 12 13 |
# File 'lib/robust_excel_ole/cell.rb', line 7 def initialize(win32_cell) if win32_cell.MergeCells @cell = win32_cell.MergeArea.Item(1,1) else @cell = win32_cell end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(id, *args) ⇒ Object
:nodoc: #
15 16 17 |
# File 'lib/robust_excel_ole/cell.rb', line 15 def method_missing(id, *args) # :nodoc: # @cell.send(id, *args) end |
Instance Attribute Details
#cell ⇒ Object (readonly)
Returns the value of attribute cell
5 6 7 |
# File 'lib/robust_excel_ole/cell.rb', line 5 def cell @cell end |