add simple example for importing a module
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
class Cthulu {
|
||||||
|
message {
|
||||||
|
return "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import "cthulu" for Cthulu
|
||||||
|
|
||||||
|
class Lovecraft {
|
||||||
|
say {
|
||||||
|
return (new Cthulu).message
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
IO.print((new Lovecraft).say)
|
||||||
Reference in New Issue
Block a user