Sha256: ae2ee09ba1832ce999a239568c877804c54f8fd98071a5d294339552de1b4ae6

Contents?: true

Size: 1.83 KB

Versions: 1

Compression:

Stored size: 1.83 KB

Contents

module SoberSwag
  module Reporting
    ##
    # Reporting outputs.
    #
    # These outputs can tell you what their acceptable views are.
    module Output
      autoload(:Base, 'sober_swag/reporting/output/base')
      autoload(:Bool, 'sober_swag/reporting/output/bool')
      autoload(:Defer, 'sober_swag/reporting/output/defer')
      autoload(:Described, 'sober_swag/reporting/output/described')
      autoload(:Dictionary, 'sober_swag/reporting/output/dictionary')
      autoload(:Interface, 'sober_swag/reporting/output/interface')
      autoload(:List, 'sober_swag/reporting/output/list')
      autoload(:MergeObjects, 'sober_swag/reporting/output/merge_objects')
      autoload(:Null, 'sober_swag/reporting/output/null')
      autoload(:Number, 'sober_swag/reporting/output/number')
      autoload(:Enum, 'sober_swag/reporting/output/enum')
      autoload(:Object, 'sober_swag/reporting/output/object')
      autoload(:Partitioned, 'sober_swag/reporting/output/partitioned')
      autoload(:Pattern, 'sober_swag/reporting/output/pattern')
      autoload(:Referenced, 'sober_swag/reporting/output/referenced')
      autoload(:Struct, 'sober_swag/reporting/output/struct')
      autoload(:Text, 'sober_swag/reporting/output/text')
      autoload(:ViaMap, 'sober_swag/reporting/output/via_map')
      autoload(:Viewed, 'sober_swag/reporting/output/viewed')

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sober_swag-0.23.0 lib/sober_swag/reporting/output.rb