Module: RubyXL::Addressing

Defined in:
lib/rubyXL/addressing.rb,
lib/rubyXL/addressing/version.rb

Constant Summary collapse

VERSION =
'0.4.0'

Instance Method Summary collapse

Instance Method Details

#addr(ref_or_row, column = nil) ⇒ RubyXL::Address

Parameters:

  • ref_or_row (String, Symbol, Integer)

    is ref ‘’A1’‘ or row index 0 or row label `’1’‘

  • column (String, Symbol, Integer) (defaults to: nil)

    is column index 0 or column label ‘’A’‘

Returns:



15
16
17
18
19
20
21
# File 'lib/rubyXL/addressing.rb', line 15

def addr(ref_or_row, column = nil)
  if column.nil?
    RubyXL::Address.new(self, ref: ref_or_row)
  else
    RubyXL::Address.new(self, row: ref_or_row, column: column)
  end
end