Created
September 13, 2016 22:01
-
-
Save zoffixznet/bc98465bb31b8a165b6b1c69ca0428b0 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
class LedgerFromFile {...}; | |
class LedgerFromPkg {...}; | |
class Ledger { | |
proto method new {*} | |
multi method new(:$file!) { LedgerFromFile.new(:$file) } | |
multi method new(:$pkg!) { LedgerFromPkg.new(:$pkg) } | |
} | |
class LedgerFromFile { | |
has Str $.file is required; | |
}; | |
class LedgerFromPkg { | |
has Str $.pkg is required; | |
} | |
Ledger.new(:file<mario>).say; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment