-
-
Save 0racle/ce073d4c1beae585aac0290954c8f946 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