Skip to content

Add support for Array types in handle_message #268

Description

@mgomes

Given this code:

handle_message(
  [:yes, :maybe] => proc { step_to state: :proceed }
  :no => proc { step_to state: :goodbye } 
)

Stealth could execute the first arm if either :yes or :maybe are specified. Both would still map to the alpha literal A though. But this way, a developer can specify multiple replies that map to a single proc making their handle_message more DRY.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions