Skip to content

Instantly share code, notes, and snippets.

@cutalion
Created February 8, 2013 15:12
Show Gist options
  • Save cutalion/4739580 to your computer and use it in GitHub Desktop.
Save cutalion/4739580 to your computer and use it in GitHub Desktop.
def empty?(s)
return s.size == 0
end
class B
def ==(s)
"not boolean"
end
end
class A
def size
B.new
end
end
puts empty?(A.new)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment