Exception: ShellOpts::ShellOptsError
- Inherits:
-
StandardError
- Object
- StandardError
- ShellOpts::ShellOptsError
- Defined in:
- lib/shellopts.rb
Overview
Base error class
Note that errors in the usage of the ShellOpts library are reported using standard exceptions
Direct Known Subclasses
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token) ⇒ ShellOptsError
constructor
A new instance of ShellOptsError.
Constructor Details
#initialize(token) ⇒ ShellOptsError
Returns a new instance of ShellOptsError.
51 52 53 54 |
# File 'lib/shellopts.rb', line 51 def initialize(token) super @token = token end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
50 51 52 |
# File 'lib/shellopts.rb', line 50 def token @token end |