Skip to content

Commit

Permalink
Fix Native::Object#is_a? semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Feb 3, 2014
1 parent 8462178 commit d21fba0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/native.rb
Expand Up @@ -229,13 +229,13 @@ def nil?
end

def is_a?(klass)
klass == Native
`$opal.is_a(self, klass)`
end

alias kind_of? is_a?

def instance_of?(klass)
klass == Native
`self._klass === klass`
end

def class
Expand Down

0 comments on commit d21fba0

Please sign in to comment.