Sha256: 0d1563bbae30f955be9bbaee56a12fe3e1cffdb710d5ea4f89c4d9a8d4ce5fa8

Contents?: true

Size: 341 Bytes

Versions: 7

Compression:

Stored size: 341 Bytes

Contents

require "strong_json/version"
require "strong_json/type"
require "strong_json/types"
require "strong_json/error_reporter"
require "prettyprint"

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

  def let(name, type)
    define_singleton_method(name) { type.with_alias(name) }
  end

  include StrongJSON::Types
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
strong_json-2.1.2 lib/strong_json.rb
strong_json-2.1.1 lib/strong_json.rb
strong_json-2.1.0 lib/strong_json.rb
strong_json-2.0.0 lib/strong_json.rb
strong_json-1.1.0 lib/strong_json.rb
strong_json-1.0.1 lib/strong_json.rb
strong_json-1.0.0 lib/strong_json.rb