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

Editable attributes #34

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

Conversation

omarqureshi
Copy link
Contributor

The following is not perfect, but is a basic implementation of using attr with function overloading ... it is backwards compatible with the current implementation.

attr('foo') does whatever it does currently, however attr('foo', 'bar') sets foo to bar and bubbles up any building dependencies of foo and returns whatever bits need to be set.

I've added a basic test suite which i used to build the functionality, but, if there are any edge cases that you think need to be addressed, just add them to the suite and I'll try and fix.

Begin the implementation of attr('source', 'setter') and
attr('relative', 'setter'). Since these are probably the easiest to
implement for now.
setter implies some sort of function
@omarqureshi
Copy link
Contributor Author

As a note, someone has implemented parameter modifications on my branch and whilst there a few things I'm nitpicking on with the code (indentation is all changed, the name of the string conversion method) it does from a quick glance look good. Is there any chance we can also look at that too?

omarqureshi#1

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