Skip to content

Commit 9aa37c3

Browse files
committedSep 23, 2013
Fix Native::Array#[]
1 parent 9de733f commit 9aa37c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎corelib/native.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ def each(&block)
9595
def [](index)
9696
result = case index
9797
when String, Symbol
98-
@named ? `#@native.#@named(#{index})` : `#@native[#{index}]`
98+
@named ? `#@native[#@named](#{index})` : `#@native[#{index}]`
9999

100100
when Integer
101-
@get ? `#@native.#@get(#{index})` : `#@native[#{index}]`
101+
@get ? `#@native[#@get](#{index})` : `#@native[#{index}]`
102102
end
103103

104104
if result

0 commit comments

Comments
 (0)
Please sign in to comment.