lib/galago/router/errors.rb in galago-router-0.0.1 vs lib/galago/router/errors.rb in galago-router-0.0.2

- old
+ new

@@ -1,22 +1,24 @@ module Galago - class Router::ActionInvalid < ArgumentError - def initialize(action) - @action = action - end + class Router + class ActionInvalid < ArgumentError + def initialize(action) + @action = action + end - def message - "Action does not have a call method: #{@action.inspect}" + def message + "Action does not have a call method: #{@action.inspect}" + end end - end - class Router::RequestMethodInvalid < ArgumentError - def initialize(request_method) - @request_method = request_method - end + class RequestMethodInvalid < ArgumentError + def initialize(request_method) + @request_method = request_method + end - def message - "Got: #{@request_method}\nExpected one of: #{REQUEST_METHODS}" + def message + "Got: #{@request_method}\nExpected one of: #{REQUEST_METHODS}" + end end end end