Permalink
Browse files

Delegate AsMethod#parameters down to CompiledCode

  • Loading branch information...
1 parent c8a2535 commit cbee9a2d7e63f1f86238f192220e192463c2daf8 @ryoqun ryoqun committed with YorickPeterse Mar 25, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 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 cbee9a2

Please sign in to comment.