Skip to content

Commit

Permalink
Objects do not have private methods (private_methods !== methods)
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 20, 2013
1 parent c91a71e commit 2e25724
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion corelib/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,9 @@ def printf(*args)
nil
end

alias private_methods methods
def private_methods
[]
end

def proc(&block)
%x{
Expand Down

0 comments on commit 2e25724

Please sign in to comment.