Class: Lifer::URIStrategy::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/lifer/uri_strategy/base.rb

Direct Known Subclasses

Pretty, Simple

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root:) ⇒ Base

Returns a new instance of Base.



4
5
6
# File 'lib/lifer/uri_strategy/base.rb', line 4

def initialize(root:)
  @root = root
end

Instance Attribute Details

#rootObject (readonly)

Returns the value of attribute root.



2
3
4
# File 'lib/lifer/uri_strategy/base.rb', line 2

def root
  @root
end

Instance Method Details

#nameObject

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/lifer/uri_strategy/base.rb', line 8

def name
  raise NotImplementedError, "implement on a subclass"
end

#output_file(entry) ⇒ Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/lifer/uri_strategy/base.rb', line 12

def output_file(entry)
  raise NotImplementedError, "implement on a subclass"
end