Skip to content

Commit

Permalink
Remove Native::Object#to_ary
Browse files Browse the repository at this point in the history
Native::Array isn't really eligible for #to_ary status, so it ends up
raising weird exceptions when methods that use #to_ary work on it.
  • Loading branch information
meh committed Feb 1, 2014
1 parent 2c6bae2 commit 9e09029
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions stdlib/native.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,6 @@ def to_a(options = {}, &block)
Native::Array.new(@native, options, &block).to_a
end

def to_ary(options = {}, &block)
Native::Array.new(@native, options, &block)
end

def inspect
"#<Native:#{`String(#@native)`}>"
end
Expand Down

0 comments on commit 9e09029

Please sign in to comment.