Module | Core::Patterns::Observable::ClassMethods |
In: |
core/patterns.rb
|
This methods will be used to extend the class that includes the Observable module.
This method is used inside the including classes to register the list of events supported by the class.
# File core/patterns.rb, line 140 def add_event(*args) puts "event(s) registered: #{args.inspect}" @events = args end