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

Replace .getSpec with .specs to obtain specs of an object #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

capital-G
Copy link

The code currently uses .getSpec which will always return nil if called without params (correct me if I am wrong). Instead it would be better to use .specs which returns the explicitly stated/attached specs for a proxy.

As .specs is not attached to Object (.getSpec is) I wrapped the code which checks if the object responds to .specs in order to avoid breakage.

Also see #5 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant