# 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