Class: Slippery::Processor

Inherits:
Object
  • Object
show all
Includes:
ProcessorHelpers
Defined in:
lib/slippery/processor.rb

Instance Method Summary collapse

Methods included from ProcessorHelpers

asset_uri, #call, #data_attributes, #hash_to_js, #include_local_css, #include_local_javascript, included, #javascript_include_tag, #stylesheet_link_tag

Constructor Details

#initialize(options) ⇒ Processor

Returns a new instance of Processor.



5
6
7
# File 'lib/slippery/processor.rb', line 5

def initialize(options)
  @options = options
end

Instance Method Details

#optionsObject



9
10
11
12
13
14
15
# File 'lib/slippery/processor.rb', line 9

def options
  if defaults = self.class.const_get(:DEFAULT_OPTIONS)
    defaults.merge(@options)
  else
    @options
  end
end