Class: Mill::Navigator::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/mill/navigator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#titleObject

Returns the value of attribute title.



8
9
10
# File 'lib/mill/navigator.rb', line 8

def title
  @title
end

#uriObject

Returns the value of attribute uri.



7
8
9
# File 'lib/mill/navigator.rb', line 7

def uri
  @uri
end