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

more concise synthesis #29

Open
rossmeissl opened this issue Jul 11, 2013 · 0 comments
Open

more concise synthesis #29

rossmeissl opened this issue Jul 11, 2013 · 0 comments
Assignees

Comments

@rossmeissl
Copy link
Collaborator

        kvc.store :site_addr, :synthesize => lambda { |parcel| parcel.slice('No1', 'Street', 'Unit').values.map(&:strip).delete_if(&:empty?).join(' ') }

should be shortcut:

        kvc.store :site_addr, :synthesize => ['No1', 'Street', 'Unit']
@ghost ghost assigned seamusabshere Jul 11, 2013
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

No branches or pull requests

2 participants