README.rdoc in event_emitter-0.0.3 vs README.rdoc in event_emitter-0.0.4
- old
+ new
@@ -8,10 +8,16 @@
== DESCRIPTION:
Ruby port of EventEmitter from Node.js
+== REQUIREMENTS:
+
+* Ruby 1.8.7+
+* Ruby 1.9.3+
+* JRuby 1.6.7+
+
== SYNOPSIS:
require "rubygems"
require "event_emitter"
@@ -43,9 +49,18 @@
call
user.emit :eat, "BEEF" # => "shokai -> BEEF"
user.emit :eat, "Ramen" # => do not call. call only first time.
+
+apply as instance-specific method
+
+ class Foo
+ end
+
+ foo = Foo.new
+ EventEmitter.apply foo
+
see samples https://github.com/shokai/event_emitter/tree/master/samples
== TEST: