def named(name)
      resource = all.detect { |resource| resource.name == name }
      if resource.nil?
        raise UnknownResource, "Resource named #{name} doesn't exist"
      else
        resource
      end
    end
def named(name)
      resource = all.detect { |resource| resource.name == name }
      if resource.nil?
        raise UnknownResource, "Resource named #{name} doesn't exist"
      else
        resource
      end
    end
Returns a resource based on its name

 @param [String] name The name of the resource you are looking for.
 @raise [UnknownResource] if a resource with the passed name isn't found.
 @return [Kanpachi::Resource] The found resource.

 @api public