Sha256: 3655ca72aadae464d04baa78125a03118fb0eeb1751e03fd6418c82a40cb9724

Contents?: true

Size: 255 Bytes

Versions: 1

Compression:

Stored size: 255 Bytes

Contents

require "strong_json/version"
require "strong_json/type"
require "strong_json/types"

class StrongJSON
  def initialize(&block)
    instance_eval(&block)
  end

  def let(name, type)
    define_method(name) { type }
  end

  include StrongJSON::Types
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
strong_json-0.0.1 lib/strong_json.rb