princess 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,9 @@
1
1
  module Princess
2
2
  class ExcelReader
3
3
 
4
- def initialize(filename)
4
+ def initialize(filename, default_sheet = 0)
5
5
  @book = Spreadsheet.open(filename)
6
- @sheet = @book.worksheet(0)
6
+ @sheet = @book.worksheet(default_sheet)
7
7
  end
8
8
 
9
9
  # load a sheet for reading
@@ -1,9 +1,9 @@
1
1
  module Princess
2
2
  class ExcelxReader
3
3
 
4
- def initialize(filename)
4
+ def initialize(filename, default_sheet = 0)
5
5
  @filename = filename
6
- active_sheet(0)
6
+ active_sheet(default_sheet)
7
7
  end
8
8
 
9
9
  # load a sheet for reading
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: princess
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - R. Scott Reis