Sha256: 73b4a50564a5aa4332994b9cf9314086cddfef18f6339eab3b61dbaa84abcd89

Contents?: true

Size: 733 Bytes

Versions: 1

Compression:

Stored size: 733 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"
require_relative "json_statham/railtie" if defined?(Rails::Railtie)

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

  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

1 entries across 1 versions & 1 rubygems

Version Path
json_statham-0.1.3 lib/json_statham.rb