Module: PaintingGem

Defined in:
lib/painting_gem.rb,
lib/painting_gem/railtie.rb,
lib/painting_gem/version.rb,
lib/painting_gem/configuration.rb,
lib/generators/painting_gem/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Configuration, Error, MyRailtie

Constant Summary collapse

VERSION =
'0.1.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



6
7
8
# File 'lib/painting_gem/configuration.rb', line 6

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



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

def configure
  @configuration ||= Configuration.new
  yield(configuration) if block_given?
end

.resetObject



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

def reset
  @configuration = Configuration.new
end