Permalink
Browse files

Delegate AsMethod#parameters down to CompiledCode

  • Loading branch information...
1 parent c8a2535 commit 83c6f8d9b15e134f118adf2814ca21b250bcbd77 @ryoqun committed Mar 25, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 kernel/common/block_environment.rb
View
8 kernel/common/block_environment.rb
@@ -84,6 +84,10 @@ def arity
end
end
+ def parameters
+ @compiled_code.parameters
+ end
+
def file
@compiled_code.file
end
@@ -127,6 +131,10 @@ def ==(other)
@block_env == other.block_env
end
+
+ def parameters
+ @block_env.parameters
+ end
end
end
end

0 comments on commit 83c6f8d

Please sign in to comment.