Module: Inky

Defined in:
lib/inky.rb,
lib/inky/rails/engine.rb,
lib/inky/configuration.rb,
lib/inky/rails/version.rb,
lib/inky/component_factory.rb,
lib/inky/rails/template_handler.rb,
lib/generators/inky/install_generator.rb

Defined Under Namespace

Modules: ComponentFactory, Generators, Rails Classes: Configuration, Core

Class Method Summary collapse

Class Method Details

.configurationInky::Configuration

Returns Inky's current configuration

Returns:


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

def self.configuration
  @configuration ||= Configuration.new
end

.configuration=(config) ⇒ Object

Set Inky's configuration

Parameters:


9
10
11
# File 'lib/inky/configuration.rb', line 9

def self.configuration=(config)
  @configuration = config
end

.configure {|config| ... } ⇒ Object

Modify Inky's current configuration “` Inky.configure do |config|

config.template_engine = :slim

end “`

Yield Parameters:


20
21
22
# File 'lib/inky/configuration.rb', line 20

def self.configure
  yield configuration
end