Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parley::parley() does not unpack arguments properly #1

Open
lzrd opened this issue Jun 23, 2015 · 0 comments
Open

Parley::parley() does not unpack arguments properly #1

lzrd opened this issue Jun 23, 2015 · 0 comments
Assignees
Labels

Comments

@lzrd
Copy link
Owner

lzrd commented Jun 23, 2015

This makes it work. Need tests written and test against various Ruby versions.

def parley (timeout_seconds, *actions)
actions = actions[0] if actions and actions.kind_of?(Array) and actions.size
== 1 and actions[0].kind_of?(Array)

@lzrd lzrd added the bug label Jun 23, 2015
@lzrd lzrd self-assigned this Jun 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant