Exception: Msnav::CLI::Exit
- Inherits:
-
StandardError
- Object
- StandardError
- Msnav::CLI::Exit
- Defined in:
- lib/msnav/cli.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message = nil) ⇒ Exit
constructor
A new instance of Exit.
Constructor Details
#initialize(code, message = nil) ⇒ Exit
Returns a new instance of Exit.
32 33 34 35 |
# File 'lib/msnav/cli.rb', line 32 def initialize(code, = nil) @code = code super( || "") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
30 31 32 |
# File 'lib/msnav/cli.rb', line 30 def code @code end |