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

Make memoize return a :symbol #24

Merged
merged 1 commit into from
Aug 13, 2014
Merged

Conversation

matthewrudy
Copy link
Owner

should make it chainable.

private memoize def something
  "nothing"
end

private memoize def something
  "nothing"
end
@pboling
Copy link
Contributor

pboling commented Aug 12, 2014

Awesome

@Fryguy
Copy link

Fryguy commented Aug 12, 2014

👍

@matthewrudy
Copy link
Owner Author

Notably if you've given it a splatted array it won't work.
But for the basic case, it should be fine.

matthewrudy added a commit that referenced this pull request Aug 13, 2014
@matthewrudy matthewrudy merged commit d4f5590 into master Aug 13, 2014
@matthewrudy matthewrudy deleted the return-symbol-from-memoize branch August 13, 2014 04:25
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.

3 participants