Class: Mill::Navigator::Item
- Inherits:
-
Object
- Object
- Mill::Navigator::Item
- Defined in:
- lib/mill/navigator.rb
Instance Attribute Summary collapse
-
#title ⇒ Object
Returns the value of attribute title.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri:, title: nil) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(uri:, title: nil) ⇒ Item
Returns a new instance of Item.
10 11 12 13 |
# File 'lib/mill/navigator.rb', line 10 def initialize(uri:, title: nil) @uri = Addressable::URI.parse(uri) @title = title end |
Instance Attribute Details
#title ⇒ Object
Returns the value of attribute title.
8 9 10 |
# File 'lib/mill/navigator.rb', line 8 def title @title end |
#uri ⇒ Object
Returns the value of attribute uri.
7 8 9 |
# File 'lib/mill/navigator.rb', line 7 def uri @uri end |