Method: Colloquy::Renderer#initialize

Defined in:
lib/colloquy/renderer.rb

#initialize(options = {}) ⇒ Renderer

Extracts root path from options hash and creates a HashWithIndifferentAccess object using options.

Parameters:

  • options (Hash) (defaults to: {})

    The options hash



14
15
16
17
# File 'lib/colloquy/renderer.rb', line 14

def initialize(options = {})
  Colloquy.root = options[:path_root] if options[:path_root]
  @options = options.with_indifferent_access
end