Sha256: b6f9005ec9c7ff73d50d1edebeb1882f96474697c79b9b4dbbabba6eb5811d61

Contents?: true

Size: 276 Bytes

Versions: 8

Compression:

Stored size: 276 Bytes

Contents

module Osheet::WorkbookElement

  def workbook
    get_ivar(:workbook)
  end

  [:styles, :templates].each do |thing|
    define_method(thing) do
      if workbook && workbook.respond_to?(thing)
        workbook.send(thing)
      else
        nil
      end
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

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