Sha256: 1c68ff1081a2f2d16578dfac588aececee83e0fb30a3e44da368051dc4d5081a

Contents?: true

Size: 623 Bytes

Versions: 2

Compression:

Stored size: 623 Bytes

Contents

# frozen_string_literal: true

require_relative "json_statham/helper"
require_relative "json_statham/version"
require_relative "json_statham/requests"
require_relative "json_statham/validation"

module JsonStatham
  autoload :Config, "json_statham/config"
  autoload :Parser, "json_statham/parser"
  autoload :Schema, "json_statham/schema"
  autoload :Result, "json_statham/result"

  class << self
    def configure
      yield config
    end

    def config
      @_config ||= Config.new
    end

    def extended(base)
      base.include Helper
    end

    def included(base)
      base.extend Helper
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
json_statham-0.1.2 lib/json_statham.rb
json_statham-0.1.0 lib/json_statham.rb