Skip to content

Instantly share code, notes, and snippets.

@avsej
Created November 19, 2013 12:42
Show Gist options
  • Select an option

  • Save avsej/7544778 to your computer and use it in GitHub Desktop.

Select an option

Save avsej/7544778 to your computer and use it in GitHub Desktop.
class Bug
undef :===
end
case 42
when Bug.new
puts "bang"
end
@ka8725

ka8725 commented Nov 19, 2013

Copy link
Copy Markdown
case 1
when BasicObject.new
  puts 'bang!'
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment