Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- h = ActiveSupport::OrderedHash.new
- h['one'] = '1'
- h['two'] = '1'
- h['three'] = '1'
- h.find_all { true }
- => [["one", "1"], ["two", "1"], ["three", "1"]]
- h.select { true }
- => {"one"=>"1", "two"=>"1", "three"=>"1"}
Add Comment
Please, Sign In to add comment