Exception: ShellOpts::ShellOptsError

Inherits:
StandardError
  • Object
show all
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

CompilerError, Error, InternalError

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tokenObject (readonly)

Returns the value of attribute token.



50
51
52
# File 'lib/shellopts.rb', line 50

def token
  @token
end