Created
November 16, 2012 03:52
-
-
Save kkxlkkxllb/4083883 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| main = exports ? this | |
| main.searchLocations = (brand, cities...) -> | |
| a = "looking for #{brand} in #{cities.join(',')}" | |
| console.log(a) | |
| class main.Coffee | |
| constructor: (@name, @strength=1) -> | |
| $("i.icon-leaf").click => | |
| console.log(@name) | |
| brew: -> alert "brewing #{@name}" | |
| pour: (amount=@strength) -> | |
| if amount is 1 | |
| "Poured a single cup" | |
| else | |
| "Poured #{amount} cups" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment