Skip to content

Add support for Array types in handle_message #268

@mgomes

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.

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