Sha256: cf6114a49f278bff034df6f8d582f48e10eac1782ca21e6de04bfc175950c921

Contents?: true

Size: 817 Bytes

Versions: 1

Compression:

Stored size: 817 Bytes

Contents

require_relative 'base_compiler'
require_relative './mixins/dependable'
require_relative './mixins/publicity'

module Apress
  module Documentation
    module Dsl
      module Compilers
        # Private: "Компилирует" блок для объекта класса SwaggerDocument заполняя в нем нужные аттрибуты
        class SwaggerCompiler < BaseCompiler
          include Apress::Documentation::Dsl::Mixins::Dependable
          include Apress::Documentation::Dsl::Mixins::Publicity
          extend Forwardable

          alias_method :swagger_document, :target
          setters :business_desc,
                  :tests

          def_delegators :swagger_document, :swagger_class
          def_delegators :swagger_class, :swagger_path
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apress-documentation-0.4.0 lib/apress/documentation/dsl/compilers/swagger_compiler.rb