Skip to content

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

Open
capital-G wants to merge 2 commits intosupercollider-quarks:masterfrom
capital-G:specs
Open

Replace .getSpec with .specs to obtain specs of an object#7
capital-G wants to merge 2 commits intosupercollider-quarks:masterfrom
capital-G:specs

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