From e86555de7fd0aea6bbd7d3140a714e9a09e50a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Garc=C3=ADa?= Date: Mon, 31 Oct 2011 01:01:40 +0100 Subject: [PATCH] updated readme --- README.textile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.textile b/README.textile index da7514f..4fd1530 100644 --- a/README.textile +++ b/README.textile @@ -100,6 +100,10 @@ If you want to detect all signals raised (i.e. for logging and debugging) you ca
Beholder:observe(function(...) log("Event triggered", ...) end)
+A quick and dirty way of dumping all events in the standard output is just observing the nil event with @print@: + +
Beholder:observe(print)
+ If you want to trigger the events attached only to the nil event, you can do so by calling trigger without params:
Beholder:trigger()