Skip to content

How to handle multiple types聽#161

Description

@aliceclv

How would you normally handle a parameter that has multiple types?
I have a hash, containing a key channel_id that can be either string or integer.

Thanks a lot for your help 馃檹 !

hash :setup do
  integer :channel_id
  string :channel_id
end

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions