-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
Hi everyone!
Checking the README I found this interesting option
However, when I tested it in my project, it didn't work as expected
Looking over the implementation, I detected that it uses a symbolize_keys expected in the on options, ignoring the sent during the initialization.
Lines 79 to 87 in 4e31ac9
| def on(obj_or_str, opts = {}) | |
| a = enum_on(obj_or_str).to_a | |
| if opts[:symbolize_keys] | |
| a.map! do |e| | |
| e.each_with_object({}) { |(k, v), memo| memo[k.to_sym] = v; } | |
| end | |
| end | |
| a | |
| end |
So, I tried as follows and it worked!

Should the documentation be modified or rather the implementation?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels

