Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Conversation

@cvb
Copy link
Collaborator

@cvb cvb commented Sep 2, 2015

arguments now strict in it's count, so if you defined UNBOUD
in pattern then you have to match it in arguments

ALL pattern now will be matched as usual ruby variable agrument
method (*args)

good news, now you can throw NoMethodError and ArgumentError from method body whenever you want

bad news it's not back compatible with previous version and little different in it's behaviour because now you have to handle all argments, that are able to bound

anyway this is more like illustration of what I told about in ticket, so any critique and suggestions are welcome, I'm not really sure how it should be done
#20

arguments now strict in it's count, so if you defined UNBOUD
in pattern then you have to match it in arguments

ALL pattern now will be matched as usual ruby variable agrument
method (*args)
@lucasas
Copy link

lucasas commented Sep 2, 2015

:shipit:

jdantonio added a commit that referenced this pull request Sep 2, 2015
more strict arguments handling, changed NoMethodError behavior
@jdantonio jdantonio merged commit 634390d into jdantonio:master Sep 2, 2015
@jdantonio
Copy link
Owner

@cvb Thank you! :-)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants