excel-rb-appscript 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/excel-rb-appscript.gemspec +1 -1
- data/lib/Excel/workbook.rb +5 -0
- metadata +1 -1
data/excel-rb-appscript.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
# gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
12
12
|
gem.name = "excel-rb-appscript"
|
13
13
|
gem.require_paths = ["lib"]
|
14
|
-
gem.version = "0.0.
|
14
|
+
gem.version = "0.0.5"
|
15
15
|
|
16
16
|
|
17
17
|
gem.add_runtime_dependency "rb-appscript"
|
data/lib/Excel/workbook.rb
CHANGED
@@ -18,6 +18,11 @@ module Excel
|
|
18
18
|
def self.app_object
|
19
19
|
@app_object.app_object
|
20
20
|
end
|
21
|
+
|
22
|
+
def self.close
|
23
|
+
app_object.workbooks[workbook_name].saved.set(true)
|
24
|
+
app_object.workbooks[workbook_name].close
|
25
|
+
end
|
21
26
|
|
22
27
|
def self.worksheets
|
23
28
|
app_object.workbooks[workbook_name].worksheets.get.collect {|ws| ws.name.get }
|