Sha256: 835dec7c7e84458f33df3e03bbc3079fa6cdc95472a1faa3f37d7622b87a2332

Contents?: true

Size: 922 Bytes

Versions: 13

Compression:

Stored size: 922 Bytes

Contents

# frozen_string_literal: true

require 'bundler'
Bundler.setup
require 'dry-struct'
require 'dry-types'
require 'sober_swag/types'
require 'sober_swag/version'
require 'active_support/inflector'

##
# Root namespace
module SoberSwag
  class Error < StandardError; end

  autoload :Parser, 'sober_swag/parser'
  autoload :Serializer, 'sober_swag/serializer'
  autoload :OutputObject, 'sober_swag/output_object'
  autoload :Nodes, 'sober_swag/nodes'
  autoload :Compiler, 'sober_swag/compiler'
  autoload :Controller, 'sober_swag/controller'
  autoload :InputObject, 'sober_swag/input_object'
  autoload :Server, 'sober_swag/server'

  ##
  # Define a struct of something.
  # Useful to prevent weirdness from autoloading.
  # @param parent [Class] the base class for the struct (default of {SoberSwag::Struct})
  def self.input_object(parent = nil, &block)
    Class.new(parent || SoberSwag::InputObject, &block)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sober_swag-0.14.0 lib/sober_swag.rb
sober_swag-0.13.0 lib/sober_swag.rb
sober_swag-0.12.0 lib/sober_swag.rb
sober_swag-0.11.0 lib/sober_swag.rb
sober_swag-0.10.0 lib/sober_swag.rb
sober_swag-0.9.0 lib/sober_swag.rb
sober_swag-0.8.0 lib/sober_swag.rb
sober_swag-0.7.0 lib/sober_swag.rb
sober_swag-0.6.0 lib/sober_swag.rb
sober_swag-0.5.0 lib/sober_swag.rb
sober_swag-0.4.0 lib/sober_swag.rb
sober_swag-0.3.0 lib/sober_swag.rb
sober_swag-0.2.0 lib/sober_swag.rb