Sha256: ae02f232ddd654f2099400e15ae720540d76c6a9c2a14f6c0e32dc157ac8403f

Contents?: true

Size: 1.93 KB

Versions: 6

Compression:

Stored size: 1.93 KB

Contents

module SoberSwag
  module Reporting
    ##
    # Module for SoberSwag reporting inputs.
    module Input
      autoload :Base, 'sober_swag/reporting/input/base'
      autoload :Bool, 'sober_swag/reporting/input/bool'
      autoload :Converting, 'sober_swag/reporting/input/converting'
      autoload :Described, 'sober_swag/reporting/input/described'
      autoload :Dictionary, 'sober_swag/reporting/input/dictionary'
      autoload :Defer, 'sober_swag/reporting/input/defer'
      autoload :Enum, 'sober_swag/reporting/input/enum'
      autoload :Either, 'sober_swag/reporting/input/either'
      autoload :Format, 'sober_swag/reporting/input/format'
      autoload :Number, 'sober_swag/reporting/input/number'
      autoload :Interface, 'sober_swag/reporting/input/interface'
      autoload :InRange, 'sober_swag/reporting/input/in_range'
      autoload :List, 'sober_swag/reporting/input/list'
      autoload :MultipleOf, 'sober_swag/reporting/input/multiple_of'
      autoload :Mapped, 'sober_swag/reporting/input/mapped'
      autoload :MergeObjects, 'sober_swag/reporting/input/merge_objects'
      autoload :Null, 'sober_swag/reporting/input/null'
      autoload :Object, 'sober_swag/reporting/input/object'
      autoload :Pattern, 'sober_swag/reporting/input/pattern'
      autoload :Referenced, 'sober_swag/reporting/input/referenced'
      autoload :Struct, 'sober_swag/reporting/input/struct'
      autoload :Text, 'sober_swag/reporting/input/text'

      class << self
        ##
        # @return [SoberSwag::Reporting::Input::Bool]
        def bool
          Bool.new
        end

        ##
        # @return [SoberSwag::Reporting::Input::Text]
        def text
          Text.new
        end

        ##
        # @return [SoberSwag::Reporting::Input::Number]
        def number
          Number.new
        end

        ##
        # @return [SoberSwag::Reporting::Input::Null]
        def null
          Null.new
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sober_swag-0.25.2 lib/sober_swag/reporting/input.rb
sober_swag-0.25.1 lib/sober_swag/reporting/input.rb
sober_swag-0.25.0 lib/sober_swag/reporting/input.rb
sober_swag-0.24.1 lib/sober_swag/reporting/input.rb
sober_swag-0.24.0 lib/sober_swag/reporting/input.rb
sober_swag-0.23.0 lib/sober_swag/reporting/input.rb