Exception: NagiosCheck::MissingOption

Inherits:
StandardError
  • Object
show all
Defined in:
lib/nagios_check.rb

Instance Method Summary collapse

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_sObject



202
203
204
# File 'lib/nagios_check.rb', line 202

def to_s
  "missing option: '#{@name}'"
end