Flowdock
method

ensure_valid_address

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: Route
ensure_valid_address() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionmailbox/lib/action_mailbox/router/route.rb, line 36
      def ensure_valid_address
        unless [ Symbol, String, Regexp, Proc ].any? { |klass| address.is_a?(klass) } || address.respond_to?(:match?)
          raise ArgumentError, "Expected a Symbol, String, Regexp, Proc, or matchable, got #{address.inspect}"
        end
      end
Register or log in to add new notes.