Module: EasyProfiler::ClassMethods

Included in:
EasyProfiler
Defined in:
lib/easy_prof.rb

Instance Method Summary collapse

Instance Method Details

#configuration(force = false) ⇒ Object Also known as: config



17
18
19
20
21
22
# File 'lib/easy_prof.rb', line 17

def configuration(force = false)
  if !@configuration || force
    @configuration = Configuration.new
  end
  @configuration
end

#configure(force = false) {|configuration(force)| ... } ⇒ Object

Yields:



13
14
15
# File 'lib/easy_prof.rb', line 13

def configure(force = false)
  yield configuration(force)
end