Module: Aitch::Engines::JSON

Defined in:
lib/aitch/engines/json.rb

Class Method Summary collapse

Class Method Details

.dump(data) ⇒ Object



10
11
12
# File 'lib/aitch/engines/json.rb', line 10

def self.dump(data)
  ::JSON.dump(data)
end

.load(data) ⇒ Object



6
7
8
# File 'lib/aitch/engines/json.rb', line 6

def self.load(data)
  data && ::JSON.parse(data)
end