Module: Twilio::Config
- Extended by:
- Config
- Included in:
- Config
- Defined in:
- lib/twilio/config.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &blk) ⇒ Object
7
8
9
10
|
# File 'lib/twilio/config.rb', line 7
def method_missing(meth, *args, &blk)
const = meth.to_s.upcase
Twilio.const_set(const, args.first) unless Twilio.const_defined? const
end
|
Instance Method Details
#setup(&blk) ⇒ Object
3
4
5
|
# File 'lib/twilio/config.rb', line 3
def setup &blk
instance_eval &blk
end
|