Created
November 8, 2015 17:23
-
-
Save autarch/e07cfcd2a30eb384e6d6 to your computer and use it in GitHub Desktop.
This file contains 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
use v6; | |
unit module App::insucalc; | |
subset Dir of IO::Handle where *.d; | |
sub MAIN( Dir :$root = $*HOME.child('.insucalc') ) is export { | |
App::insucalc::Runner.new( :root($root) ).run(); | |
} | |
class App::insucalc::Runner { | |
my class App::insulcalc::Plan { } | |
my class App::insulcalc::Scenario { } | |
has Dir $!root where { $root.d }; | |
has App::insulcalc::Plan @!plans; | |
has App::insulcalc::Scenario @!scenarios; | |
method run { | |
say "Root = $!root" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gives me