Sha256: 4d1e80ea7fb9f91040c24d617ceac03331bd7147bdfdfef98a7b251c4066bb5f

Contents?: true

Size: 185 Bytes

Versions: 1

Compression:

Stored size: 185 Bytes

Contents

require 'sway/base'
require 'json'

module Sway
  class JSON < Sway::Base
    def initialize(json)
      array_or_hash = ::JSON.parse(json)
      super(array_or_hash)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sway-0.0.1 lib/sway/json.rb