class Axlsx::Builder::Position

Attributes

col[W]
row[RW]

Public Class Methods

new(row: 0, col: 0) click to toggle source
# File lib/axlsx/builder.rb, line 49
def initialize(row: 0, col: 0)
  @row = row
  @col = col
end

Public Instance Methods

col() click to toggle source

Must subtract 1 from col as it is 0 based, not 1 based.

# File lib/axlsx/builder.rb, line 55
def col
  @col-1
end