Exception: NagiosCheck::MissingOption
- Inherits:
-
StandardError
- Object
- StandardError
- NagiosCheck::MissingOption
- Defined in:
- lib/nagios_check.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ MissingOption
constructor
A new instance of MissingOption.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ MissingOption
Returns a new instance of MissingOption.
198 199 200 |
# File 'lib/nagios_check.rb', line 198 def initialize(name) @name = name end |
Instance Method Details
#to_s ⇒ Object
202 203 204 |
# File 'lib/nagios_check.rb', line 202 def to_s "missing option: '#{@name}'" end |