Class: PropertyList::Url

Inherits:
Object
  • Object
show all
Defined in:
lib/property-list.rb

Overview

call-seq:

PropertyList::Url.new 'http://foo.com' # with base
PropertyList::Url.new '/foo.com'       # no base

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Url

Returns a new instance of Url.



82
83
84
# File 'lib/property-list.rb', line 82

def initialize url
  @url = url
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



86
87
88
# File 'lib/property-list.rb', line 86

def url
  @url
end

Instance Method Details

#==(other) ⇒ Object



88
89
90
# File 'lib/property-list.rb', line 88

def == other
  other.is_a?(Url) and @url == other.url
end