Class: PropertyList::Url
- Inherits:
-
Object
- Object
- PropertyList::Url
- 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
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(url) ⇒ Url
constructor
A new instance of Url.
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
#url ⇒ Object (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 |