Class: Decider::Module::Decide

Inherits:
Data
  • Object
show all
Defined in:
lib/decider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_eventsObject (readonly)

Returns the value of attribute _events

Returns:

  • (Object)

    the current value of _events



48
49
50
# File 'lib/decider.rb', line 48

def _events
  @_events
end

#commandObject (readonly)

Returns the value of attribute command

Returns:

  • (Object)

    the current value of command



48
49
50
# File 'lib/decider.rb', line 48

def command
  @command
end

#stateObject (readonly)

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



48
49
50
# File 'lib/decider.rb', line 48

def state
  @state
end

Instance Method Details

#emit(*events) ⇒ Object



49
50
51
# File 'lib/decider.rb', line 49

def emit(*events)
  _events.push(*events)
end