Module: Recurl::Configuration

Included in:
Recurl
Defined in:
lib/recurl/configuration.rb

Overview

Configure Recurl

Usage: Recurl.configure do |config|

config.logger = Logger.new(STDOUT)

end

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



11
12
13
# File 'lib/recurl/configuration.rb', line 11

def logger
  @logger
end

Instance Method Details

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

Yields:

  • (_self)

Yield Parameters:



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

def configure
  yield self
end