Exception: Dirwatch::OsNotSupportedError
- Defined in:
- lib/dirwatch/errors.rb
Instance Attribute Summary collapse
-
#available ⇒ Object
readonly
Returns the value of attribute available.
-
#os ⇒ Object
readonly
Returns the value of attribute os.
Instance Method Summary collapse
-
#initialize(os, available, msg = nil) ⇒ OsNotSupportedError
constructor
A new instance of OsNotSupportedError.
Constructor Details
#initialize(os, available, msg = nil) ⇒ OsNotSupportedError
Returns a new instance of OsNotSupportedError.
42 43 44 45 46 |
# File 'lib/dirwatch/errors.rb', line 42 def initialize os, available, msg = nil super msg || "The operating system #{os} is not supported. Only #{available.join ', '}" @os = os @available = available end |
Instance Attribute Details
#available ⇒ Object (readonly)
Returns the value of attribute available.
41 42 43 |
# File 'lib/dirwatch/errors.rb', line 41 def available @available end |
#os ⇒ Object (readonly)
Returns the value of attribute os.
41 42 43 |
# File 'lib/dirwatch/errors.rb', line 41 def os @os end |