Skip to content

Instantly share code, notes, and snippets.

@rubiety
Created December 8, 2011 19:46
Show Gist options
  • Save rubiety/1448238 to your computer and use it in GitHub Desktop.
Save rubiety/1448238 to your computer and use it in GitHub Desktop.
freezing.rb
class City
def freezing?
case name
when "San Diego"
current_temperature < 60
when "Austin"
current_temperature < 50
when "Rochester"
current_temperature < -10
else
current_temperature < 32
end
end
end
@jfine
Copy link

jfine commented Dec 8, 2011

freezing.js Ruby # ?

@rubiety
Copy link
Author

rubiety commented Dec 8, 2011

I was going to write it in JavaScript for Dan, but then I realized it would be the syntax clusterfuck that JavaScript is ;-)

@jfine
Copy link

jfine commented Dec 8, 2011

hehe

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