Method: Magneto::Site#initialize
- Defined in:
- lib/magneto/site.rb
#initialize(config, filters) ⇒ Site
Returns a new instance of Site.
7 8 9 10 11 12 13 14 |
# File 'lib/magneto/site.rb', line 7 def initialize(config, filters) super() @config = config @filters = filters @items_path = @config[:source_path] + '/items' @items_path.freeze reset end |