Method: Librevox::Applications#export
- Defined in:
- lib/librevox/applications.rb
#export(var, args = {}, &block) ⇒ Object
Exports a channel variable from the A leg to the B leg. Variables and their values will be replicated in any new channels created from the one export was called.
Set :local => false if the variable should only be exported to the B-leg.
101 102 103 104 105 |
# File 'lib/librevox/applications.rb', line 101 def export var, args={}, &block nolocal = args[:local] == false ? "nolocal:" : "" # ugly!!111 application "export", "#{nolocal}#{var}", &block end |