Class: UHaul::Link
- Inherits:
-
Object
- Object
- UHaul::Link
- Defined in:
- lib/uhaul/link.rb
Overview
A link in a sitemap.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(loc:) ⇒ Link
constructor
A new instance of Link.
- #inspect ⇒ String
Constructor Details
#initialize(loc:) ⇒ Link
Returns a new instance of Link.
11 12 13 |
# File 'lib/uhaul/link.rb', line 11 def initialize(loc:) @loc = loc end |
Instance Attribute Details
#loc ⇒ String
8 9 10 |
# File 'lib/uhaul/link.rb', line 8 def loc @loc end |
Instance Method Details
#inspect ⇒ String
16 17 18 |
# File 'lib/uhaul/link.rb', line 16 def inspect "#<#{self.class.name} loc=#{@loc.inspect}>" end |