Event | = | self | @private | |
DEFAULT_URI_PARSER | = | URI::Parser.new(:HOSTNAME => /(?:#{URI::PATTERN::HOSTNAME})|/) | Make sure to allow empty hostnames, Ruby 2.0.0 does not. |
method | -> | type |
method | [RW] | @return [Symbol] method name that this event will call in {dispatch} |
Use Event.new(impl) to wrap a C event, or Event.new(nil, method, context) to create a pure-ruby event.
Convert s to an amqp: or amqps: URI
This does not give the same result as the standard URI parser in all cases. Short-cut strings like "host:port" are allowed, an "amqp://" prefix is added if s does not already look like an ‘amqp:’ or ‘amqps:’ URI.
@param s [String,URI] String to convert to a URI, or a URI object. @return [URI] A valid AMQP or AMQPS URI @raise [URI::BadURIError] s is a URI object with a non-AMQP scheme @raise [URI::InvalidURIError] s cannot be parsed as a URI or shortcut @raise [::ArgumentError] s is not a string or URI