class RobustExcelOle::Cell

Constants

Value

Public Class Methods

new(win32_cell, worksheet) click to toggle source

attr_reader :ole_cell

Calls superclass method
# File lib/robust_excel_ole/cell.rb, line 9
def initialize(win32_cell, worksheet)
  super
  ole_cell
end

Public Instance Methods

inspect() click to toggle source

@private

# File lib/robust_excel_ole/cell.rb, line 36
def inspect 
  to_s[0..-2] + " #{@ole_range.Parent.Name}>" 
end
ole_cell() click to toggle source

@private

# File lib/robust_excel_ole/cell.rb, line 26
def ole_cell
  @ole_range = @ole_range.MergeArea.Item(1,1) if @ole_range.MergeCells
end
to_s() click to toggle source

@private

# File lib/robust_excel_ole/cell.rb, line 31
def to_s    
  "#<Cell: (#{@ole_range.Row},#{@ole_range.Column})>"
end
v()
Alias for: value
v=(value)
Alias for: value=
value() click to toggle source
# File lib/robust_excel_ole/cell.rb, line 14
def value
  self.Value
end
Also aliased as: v
value=(value) click to toggle source
# File lib/robust_excel_ole/cell.rb, line 18
def value=(value)
  self.Value = value
end
Also aliased as: v=

Private Instance Methods

method_missing(name, *args) click to toggle source

@private

Calls superclass method
# File lib/robust_excel_ole/cell.rb, line 43
def method_missing(name, *args) 
  super unless name.to_s[0,1] =~ /[A-Z]/
  if ::ERRORMESSAGE_JRUBY_BUG
    begin
      @ole_range.send(name, *args)
    rescue Java::OrgRacobCom::ComFailException 
      raise VBAMethodMissingError, "unknown VBA property or method #{name.inspect}"
    end
  else
    begin
      @ole_range.send(name, *args)
    rescue NoMethodError 
      raise VBAMethodMissingError, "unknown VBA property or method #{name.inspect}"
    end
  end
end