ruhl 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ruhl/engine.rb +5 -4
- data/ruhl.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.2
|
data/lib/ruhl/engine.rb
CHANGED
@@ -231,19 +231,20 @@ module Ruhl
|
|
231
231
|
end
|
232
232
|
|
233
233
|
if Ruhl.use_instance_variables
|
234
|
-
|
234
|
+
calling = args.first
|
235
|
+
# No luck so far, lets see if calling is actually an instance
|
235
236
|
# variable.
|
236
|
-
ivar = :"@#{
|
237
|
+
ivar = :"@#{calling}"
|
237
238
|
if scope.instance_variable_defined?(ivar)
|
238
239
|
if Ruhl.log_instance_variable_warning
|
239
|
-
Ruhl.logger.warn("Ruhl did NOT find a method named: #{
|
240
|
+
Ruhl.logger.warn("Ruhl did NOT find a method named: #{calling} but did find and is using: @#{calling}")
|
240
241
|
end
|
241
242
|
return scope.instance_variable_get(ivar)
|
242
243
|
end
|
243
244
|
end
|
244
245
|
|
245
246
|
log_context(code)
|
246
|
-
raise NoMethodError.new("Neither method nor instance variable found: #{
|
247
|
+
raise NoMethodError.new("Neither method nor instance variable found: #{calling}")
|
247
248
|
end
|
248
249
|
end
|
249
250
|
|
data/ruhl.gemspec
CHANGED