Skip to content

Commit

Permalink
Delegate AsMethod#parameters down to CompiledCode
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun authored and Yorick Peterse committed Mar 25, 2013
1 parent c8a2535 commit cbee9a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kernel/common/block_environment.rb
Expand Up @@ -84,6 +84,10 @@ def arity
end
end

def parameters
@compiled_code.parameters
end

def file
@compiled_code.file
end
Expand Down Expand Up @@ -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.