Skip to content
Browse files

changes

  • Loading branch information...
1 parent 5a60984 commit 71c7db4b6b47eb4caa75b28ad8c12fe1a7ee74ec @vangberg committed
Showing with 17 additions and 1 deletion.
  1. +17 −1 CHANGES
View
18 CHANGES
@@ -10,7 +10,23 @@
commands from a listener – this is easier on the eye, and makes for
a slighly simpler implementation.
- * Fibers, 1.9-only
+ * Introduced, making Librevox Ruby 1.9-only. Support for the old
+ callback-style has been removed. This would have worked in < 0.3:
+
+ def session_initiated
+ answer
+ play_and_get_digits 'some-file.mp3' do |digit|
+ ...
+ end
+ end
+
+ Now you can write your code in a seemingly blocking manner:
+
+ def session_initiated
+ answer
+ digit = play_and_get_digits 'some-file.mp3'
+ ...
+ end
* Use `Listener::Outbound#variable(name)` to access channel variables.
E.g. `variable("foo")` is a shortcut for `session["variable_foo"]`.

0 comments on commit 71c7db4

Please sign in to comment.
Something went wrong with that request. Please try again.