Skip to content

Instantly share code, notes, and snippets.

@aktowns
Created March 23, 2013 03:28
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 aktowns/5226313 to your computer and use it in GitHub Desktop.
Save aktowns/5226313 to your computer and use it in GitHub Desktop.
Ξ repos/crystal git:(master) ▶ cat test.cr
class Hello
def initialize(wow)
@wow = wow
end
def do_it
puts @wow
end
end
x = Hello.new "Helllooooo"
x.do_it%
Ξ repos/crystal git:(master) ▶ bin/crystal test.cr
Ξ repos/crystal git:(master) ▶ ./test
Helllooooo
Ξ repos/crystal git:(master) ▶ file test
test: Mach-O 64-bit executable x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment