rogerdpack-arguments 0.4.7.8 → 0.4.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/arguments/class.rb +1 -1
- metadata +1 -1
data/lib/arguments/class.rb
CHANGED
@@ -54,7 +54,7 @@ module NamedArgs
|
|
54
54
|
puts "wrapping #{ meth } with this code #{new_code}" if $VERBOSE
|
55
55
|
|
56
56
|
begin
|
57
|
-
klass.module_eval new_code, __FILE__
|
57
|
+
klass.module_eval new_code, __FILE__, line_loc + 1
|
58
58
|
rescue SyntaxError => e
|
59
59
|
puts "warning--unable to wrap method #{ meth } -- possibly a syntax exception or it's not all on one line in 1.9 -- #{new_code}"
|
60
60
|
throw e
|