Module: Lesmok::ClassMethods

Included in:
Lesmok
Defined in:
lib/lesmok.rb

Instance Method Summary collapse

Instance Method Details

#configObject



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

def config
  @configuration ||= Config.new
end

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

Yields:



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

def configure
  yield(config)
end

#loggerObject



15
16
17
# File 'lib/lesmok.rb', line 15

def logger
  config.logger
end