Sha256: ff3b77ecf41c0e3558433f0df5a9bac7544ba10497932467cd7219ee76886a98

Contents?: true

Size: 274 Bytes

Versions: 8

Compression:

Stored size: 274 Bytes

Contents

module Osheet::WorksheetElement

  def worksheet
    get_ivar(:worksheet)
  end

  [:columns, :rows].each do |meth|
    define_method(meth) do
      if worksheet && worksheet.respond_to?(meth)
        worksheet.send(meth)
      else
        nil
      end
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
osheet-0.10.0 lib/osheet/worksheet_element.rb
osheet-0.9.2 lib/osheet/worksheet_element.rb
osheet-0.9.1 lib/osheet/worksheet_element.rb
osheet-0.9.0 lib/osheet/worksheet_element.rb
osheet-0.8.0 lib/osheet/worksheet_element.rb
osheet-0.7.0 lib/osheet/worksheet_element.rb
osheet-0.6.0 lib/osheet/worksheet_element.rb
osheet-0.5.0 lib/osheet/worksheet_element.rb