Class Wisper::ValueObjects::Events
In: lib/wisper/value_objects/events.rb
Parent: Object

Describes allowed events

Duck-types the argument to quack like array of strings when responding to the {include?} method call.

Methods

include?   new  

Public Class methods

@!scope class @!method new(on) Initializes a ‘list’ of events

@param [NilClass, String, Symbol, Array, Regexp] list

@raise [ArgumentError]

  if an argument if of unsupported type

@return [undefined]

Public Instance methods

Check if given event is ‘included’ to the ‘list’ of events

@param [to_s] event

@return [Boolean]

[Validate]