soveran-drawer 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/drawer.rb +2 -0
- metadata +1 -1
data/lib/drawer.rb
CHANGED
@@ -58,12 +58,14 @@ class Drawer
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def self.open(file, &block)
|
61
|
+
file = File.expand_path(file)
|
61
62
|
drawer = Drawer.new(file)
|
62
63
|
yield drawer if block_given?
|
63
64
|
drawer
|
64
65
|
end
|
65
66
|
|
66
67
|
def self.open!(file)
|
68
|
+
file = File.expand_path(file)
|
67
69
|
create(file)
|
68
70
|
open(file)
|
69
71
|
end
|