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.



72
73
74
# File 'lib/property-list.rb', line 72

def initialize url
  @url = url
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



76
77
78
# File 'lib/property-list.rb', line 76

def url
  @url
end

Instance Method Details

#==(other) ⇒ Object



78
79
80
# File 'lib/property-list.rb', line 78

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