lib/easymon/checklist.rb
# The following method could be implemented as a def_delegator by
# extending Forwardable, but since we want to catch IndexError and
# raise Easymon::NoSuchCheck, we'll be explicit here.
#
The following method could be implemented as a def_delegator by
extending Forwardable, but since we want to catch IndexError and
raise Easymon::NoSuchCheck, we'll be explicit here.
The following method could be implemented as a def_delegator by extending Forwardable but since we want to catch IndexError and raise Easymon :: NoSuchCheck we ' ll be explicit here .
def fetch(name)
      items.fetch(name)
    rescue IndexError
      raise NoSuchCheck, "No check named '#{name}'"
    end
def fetch ( name ) items . fetch ( name ) rescue IndexError raise NoSuchCheck , "No check named '#{name}'" end
The following method could be implemented as a def_delegator by
extending Forwardable, but since we want to catch IndexError and
raise Easymon::NoSuchCheck, we'll be explicit here.
The following method could be implemented as a def_delegator by extending Forwardable but since we want to catch IndexError and raise Easymon :: NoSuchCheck we ' ll be explicit here .
name