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.
82 83 84 |
# File 'lib/property-list.rb', line 82 def initialize url @url = url end |
Instance Attribute Details
#url ⇒ Object (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 |