Method: Alf::Reader::JSON#each
- Defined in:
- lib/alf/reader/json.rb
#each ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/alf/reader/json.rb', line 12 def each return to_enum unless block_given? require 'json' p = ::JSON.parse(input_text, create_additions: false) p = [p] if TupleLike===p p.each do |t| yield Support.symbolize_keys(t) end end |