Method: Librevox::Applications#read
- Defined in:
- lib/librevox/applications.rb
#read(file, args = {}, &block) ⇒ Object
171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/librevox/applications.rb', line 171 def read file, args={}, &block min = args[:min] || 1 max = args[:max] || 2 terminators = args[:terminators] || "#" timeout = args[:timeout] || 5000 variable = args[:variable] || "read_digits_var" arg_string = "%s %s %s %s %s %s" % [min, max, file, variable, timeout, terminators] params = {:variable => variable} application "read", arg_string, params, &block end |