Class: Songdrop::JSON

Inherits:
Object
  • Object
show all
Defined in:
lib/songdrop/json/json.rb,
lib/songdrop/json/bubblewrap.rb

Class Method Summary collapse

Class Method Details

.parse(json, &block) ⇒ Object



4
5
6
7
8
# File 'lib/songdrop/json/json.rb', line 4

def self.parse(json, &block)
  result = ::JSON.parse(json)
  block.call result if block
  result
end