methlab 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/methlab.rb +2 -2
- metadata +3 -3
data/lib/methlab.rb
CHANGED
@@ -59,7 +59,7 @@
|
|
59
59
|
#
|
60
60
|
module MethLab
|
61
61
|
|
62
|
-
VERSION = "0.0.
|
62
|
+
VERSION = "0.0.7"
|
63
63
|
|
64
64
|
# Integrates MethLab into all namespaces. It does this by patching itself
|
65
65
|
# into ::main and Module.
|
@@ -320,7 +320,7 @@ module MethLab
|
|
320
320
|
end
|
321
321
|
|
322
322
|
self.send(:define_method, method_name) do
|
323
|
-
unless self.instance_variables.select { |x| x == "@#{method_name}" }[0]
|
323
|
+
unless self.instance_variables.select { |x| x == "@#{method_name}" || x == "@#{method_name}".to_sym }[0]
|
324
324
|
args = []
|
325
325
|
MethLab.set_defaults([arg], args, :array)
|
326
326
|
send(:instance_variable_set, "@#{method_name}", args[0])
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 7
|
9
|
+
version: 0.0.7
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Erik Hollensbe
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-11 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|