We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16af36e commit 69c96e1Copy full SHA for 69c96e1
1 file changed
corelib/native.rb
@@ -293,6 +293,14 @@ def class
293
`self._klass`
294
end
295
296
+ def to_a(options = {}, &block)
297
+ Native::Array.new(@native, options, &block).to_a
298
+ end
299
+
300
+ def to_ary(options = {}, &block)
301
+ Native::Array.new(@native, options, &block)
302
303
304
def inspect
305
"#<Native:#{`String(#@native)`}>"
306
0 commit comments