Configure with a block
Configuring OAuth
ContextIO.configure do |config| config.consumer_key = 'my_consumer_key' config.consumer_secret = 'my_consumer_secret' end
Yields:
Yield Parameters:
the object that the method was called on
Returns:
79 80 81 82
# File 'lib/context-io/config.rb', line 79 def configure yield self self end