Skip to content

Instantly share code, notes, and snippets.

@cromwellryan
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cromwellryan/48239c36281e50ef08b0 to your computer and use it in GitHub Desktop.
Save cromwellryan/48239c36281e50ef08b0 to your computer and use it in GitHub Desktop.
class Stuffie
blah: () -> "blah"
stuffs = ([1..10]).map () -> new Stuffie
# Make this work CS
stuffs.map(&:blah)
class Stuffie
def blah
"blah"
end
end
stuffs = (1..10).map { Stuffie.new }
# I want this in CS
stuffs.map(&:blah)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment