class Sway::JSON

Public Class Methods

new(json) click to toggle source
Calls superclass method Sway::Base::new
# File lib/sway/json.rb, line 6
def initialize(json)
  array_or_hash = ::JSON.parse(json)
  super(array_or_hash)
end