+/*
+ * call-seq:
+ * Ecore::Timer.new(interval) { block } => timer
+ *
+ * Creates an Ecore::Timer object with the specified interval.
+ * When the timeout is hit, the block is called.
+ * If the block returns false, the timer is deleted.
+ */
+static VALUE c_init (VALUE self, VALUE interval)
+{
+ GET_OBJ (self, RbTimer, timer);
+
+ if (!rb_block_given_p ())
+ rb_raise (rb_eStandardError, "block missing");