Skip to content

Commit

Permalink
Alias Native::Array#to_ary to #to_a
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Jan 31, 2014
1 parent d651da3 commit 2c6bae2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stdlib/native.rb
Expand Up @@ -335,9 +335,7 @@ def length
`#@native[#@length]`
end

def to_ary
self
end
alias to_ary to_a

def inspect
to_a.inspect
Expand Down

0 comments on commit 2c6bae2

Please sign in to comment.