Class: Adhearsion::VoIP::DSL::Dialplan::ContextsEnvelope
- Defined in:
- lib/adhearsion/voip/dsl/dialplan/parser.rb
Instance Attribute Summary collapse
-
#parsed_contexts ⇒ Object
readonly
Returns the value of attribute parsed_contexts.
Instance Method Summary collapse
-
#initialize ⇒ ContextsEnvelope
constructor
A new instance of ContextsEnvelope.
- #method_missing(name, *args, &block) ⇒ Object
Constructor Details
#initialize ⇒ ContextsEnvelope
Returns a new instance of ContextsEnvelope.
53 54 55 |
# File 'lib/adhearsion/voip/dsl/dialplan/parser.rb', line 53 def initialize @parsed_contexts = {} end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
59 60 61 62 63 |
# File 'lib/adhearsion/voip/dsl/dialplan/parser.rb', line 59 def method_missing(name, *args, &block) super unless block_given? @parsed_contexts[name] = block (name) { block } end |
Instance Attribute Details
#parsed_contexts ⇒ Object (readonly)
Returns the value of attribute parsed_contexts.
57 58 59 |
# File 'lib/adhearsion/voip/dsl/dialplan/parser.rb', line 57 def parsed_contexts @parsed_contexts end |