Method: ContextIO::Config#configure

Defined in:
lib/context-io/config.rb

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

Configure with a block

Examples:

Configuring OAuth

ContextIO.configure do |config|
  config.consumer_key = 'my_consumer_key'
  config.consumer_secret = 'my_consumer_secret'
end

Yields:

  • (_self)

Yield Parameters:

Returns:

  • (self)


79
80
81
82
# File 'lib/context-io/config.rb', line 79

def configure
  yield self
  self
end