Class: CssViews::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/css_views/configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, options) ⇒ Configuration

Returns a new instance of Configuration.



3
4
5
6
# File 'lib/css_views/configuration.rb', line 3

def initialize(name, options)
  @name = name
  @options = options
end

Instance Method Details

#componentsObject



8
9
10
# File 'lib/css_views/configuration.rb', line 8

def components
  @options[:components]
end

#handler(controller) ⇒ Object



17
18
19
# File 'lib/css_views/configuration.rb', line 17

def handler(controller)
  Handler.new(self, controller)
end

#transformersObject



12
13
14
# File 'lib/css_views/configuration.rb', line 12

def transformers
  @options[:transformers]
end