add simple example for importing a module

This commit is contained in:
Paul Woolcock
2015-02-18 11:39:31 -05:00
parent ae88ee539d
commit 4260a10983
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class Cthulu {
message {
return "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn"
}
}

View File

@ -0,0 +1,9 @@
import "cthulu" for Cthulu
class Lovecraft {
say {
return (new Cthulu).message
}
}
IO.print((new Lovecraft).say)