Module Core::Patterns::Observable::ClassMethods
In: core/patterns.rb

This methods will be used to extend the class that includes the Observable module.

Methods

Public Instance methods

This method is used inside the including classes to register the list of events supported by the class.

  • args is a list of one or more symbols (i.e. :before_load, :after_load)

[Source]

# File core/patterns.rb, line 140
        def add_event(*args)
          puts "event(s) registered: #{args.inspect}"
          @events = args
        end

This method returns the list of events supported by an including class.

[Source]

# File core/patterns.rb, line 146
        def get_events
          @events
        end

[Validate]