module SoberSwag

Root namespace for the SoberSwag Module.

Constants

VERSION

Public Class Methods

input_object(parent = nil, &block) click to toggle source

Define a struct of something. Useful to prevent weirdness from autoloading.

@param parent [Class] the base class for the struct (default of {SoberSwag::Struct}) @yieldself [SoberSwag::InputObject] @return [Class] the input object class generated

# File lib/sober_swag.rb, line 36
def self.input_object(parent = nil, &block)
  Class.new(parent || SoberSwag::InputObject, &block)
end