class URI::XGrowlResource
Constants
- COMPONENT
- DEFAULT_PORT
- UNIQUE_ID_REGEXP
Attributes
unique_id[R]
Public Class Methods
build(args)
click to toggle source
Calls superclass method
# File lib/uri/x_growl_resource.rb, line 11 def self.build args tmp = URI::Util.make_components_hash self, args if tmp[:unique_id] then tmp[:host] = tmp[:unique_id] else tmp[:host] = '' end super tmp end
new(*args)
click to toggle source
Calls superclass method
# File lib/uri/x_growl_resource.rb, line 23 def initialize *args super @unique_id = nil if UNIQUE_ID_REGEXP =~ @host then if args[-1] then # arg_check self.unique_id = @host else set_unique_id @host end else raise URI::InvalidComponentError, "unrecognized opaque part for x-growl-resource URL: #{@host}" end end
Public Instance Methods
unique_id=(v)
click to toggle source
# File lib/uri/x_growl_resource.rb, line 44 def unique_id= v check_unique_id v set_unique_id v end