Sha256: 5506a4bef53be1d4c61f7b26685db621f84493d649b6b3b23dcf78b896a81e45

Contents?: true

Size: 265 Bytes

Versions: 15

Compression:

Stored size: 265 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_singleton_method(name) { type }
  end

  include StrongJSON::Types
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
strong_json-0.9.0 lib/strong_json.rb
strong_json-0.8.0 lib/strong_json.rb
strong_json-0.7.1 lib/strong_json.rb
strong_json-0.7.0 lib/strong_json.rb
strong_json-0.6.0 lib/strong_json.rb
strong_json-0.5.0 lib/strong_json.rb
strong_json-0.4.0 lib/strong_json.rb
strong_json-0.3.0 lib/strong_json.rb
strong_json-0.2.0 lib/strong_json.rb
strong_json-0.1.2 lib/strong_json.rb
strong_json-0.1.1 lib/strong_json.rb
strong_json-0.1.0 lib/strong_json.rb
strong_json-0.0.4 lib/strong_json.rb
strong_json-0.0.3 lib/strong_json.rb
strong_json-0.0.2 lib/strong_json.rb