Sha256: a6532baf20dcb89007118ebbf589d55b5c5e15be541ddc07caa7dd4bc25a0301

Contents?: true

Size: 450 Bytes

Versions: 25

Compression:

Stored size: 450 Bytes

Contents

class Workbook < BIFFWriter
  require 'writeexcel/properties'
  require 'writeexcel/helper'

  class Worksheets < Array
    attr_accessor :activesheet
    attr_writer :firstsheet

    def initialize
      @activesheet = nil
    end

    def activesheet_index
      index(@activesheet)
    end

    def firstsheet_index
      index(@firstsheet) || 0
    end

    def selected_count
      self.select { |sheet| sheet.selected? }.size
    end
  end
end

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
writeexcel-1.0.6 lib/writeexcel/worksheets.rb
writeexcel-1.0.5 lib/writeexcel/worksheets.rb
writeexcel-1.0.4 lib/writeexcel/worksheets.rb
writeexcel-1.0.3 lib/writeexcel/worksheets.rb
writeexcel-1.0.2 lib/writeexcel/worksheets.rb
writeexcel-1.0.1 lib/writeexcel/worksheets.rb
writeexcel-1.0.0 lib/writeexcel/worksheets.rb
writeexcel-0.6.19 lib/writeexcel/worksheets.rb
writeexcel-0.6.18 lib/writeexcel/worksheets.rb
writeexcel-0.6.17 lib/writeexcel/worksheets.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.16/lib/writeexcel/worksheets.rb
writeexcel-0.6.16 lib/writeexcel/worksheets.rb
writeexcel-0.6.15 lib/writeexcel/worksheets.rb
writeexcel-0.6.14 lib/writeexcel/worksheets.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/lib/writeexcel/worksheets.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/lib/writeexcel/worksheets.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/lib/writeexcel/worksheets.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/lib/writeexcel/worksheets.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/writeexcel-0.6.13/lib/writeexcel/worksheets.rb
writeexcel-0.6.13 lib/writeexcel/worksheets.rb