Exception: AocCli::Errors::FlagInv
- Inherits:
-
StandardError
- Object
- StandardError
- AocCli::Errors::FlagInv
- Defined in:
- lib/aoc_cli/errors.rb
Instance Attribute Summary collapse
-
#flag ⇒ Object
readonly
Returns the value of attribute flag.
Instance Method Summary collapse
-
#initialize(flag) ⇒ FlagInv
constructor
A new instance of FlagInv.
- #message ⇒ Object
Constructor Details
#initialize(flag) ⇒ FlagInv
Returns a new instance of FlagInv.
153 154 155 |
# File 'lib/aoc_cli/errors.rb', line 153 def initialize(flag) @flag = flag end |
Instance Attribute Details
#flag ⇒ Object (readonly)
Returns the value of attribute flag.
152 153 154 |
# File 'lib/aoc_cli/errors.rb', line 152 def flag @flag end |
Instance Method Details
#message ⇒ Object
156 157 158 159 160 161 |
# File 'lib/aoc_cli/errors.rb', line 156 def " \#{ERROR}: Invalid flag: \#{flag.red}\n Use the \#{\"-h\".yellow} or \#{\"--help\".yellow} flags for a list of commands\n error\nend\n" |