Last active
August 29, 2015 14:02
-
-
Save kzaitsev/6234311b327c26c13925 to your computer and use it in GitHub Desktop.
example.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hash = {lists: @lists} | |
hash.merge!(default: @lists.index(@default_list)) if @default_list | |
hash.to_json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment