Class: SimpleSitemap::Generators::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_sitemap/generators/base.rb

Direct Known Subclasses

Index, Sitemap

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, hooks) ⇒ Base

Returns a new instance of Base.



12
13
14
15
# File 'lib/simple_sitemap/generators/base.rb', line 12

def initialize(config, hooks)
  @config = config
  @hooks = hooks
end

Instance Attribute Details

#config=(value) ⇒ Object (writeonly)

Sets the attribute config

Parameters:

  • value

    the value to set the attribute config to.



10
11
12
# File 'lib/simple_sitemap/generators/base.rb', line 10

def config=(value)
  @config = value
end

#hooks=(value) ⇒ Object (writeonly)

Sets the attribute hooks

Parameters:

  • value

    the value to set the attribute hooks to.



10
11
12
# File 'lib/simple_sitemap/generators/base.rb', line 10

def hooks=(value)
  @hooks = value
end