Module: Modern::Descriptor

Defined in:
lib/modern/descriptor.rb,
lib/modern/descriptor/core.rb,
lib/modern/descriptor/info.rb,
lib/modern/descriptor/route.rb,
lib/modern/descriptor/server.rb,
lib/modern/descriptor/content.rb,
lib/modern/descriptor/response.rb,
lib/modern/descriptor/security.rb,
lib/modern/descriptor/parameters.rb,
lib/modern/descriptor/request_body.rb,
lib/modern/descriptor/converters/input/base.rb,
lib/modern/descriptor/converters/input/json.rb,
lib/modern/descriptor/converters/output/base.rb,
lib/modern/descriptor/converters/output/json.rb,
lib/modern/descriptor/converters/output/yaml.rb

Defined Under Namespace

Modules: Converters, Parameters, Security Classes: Content, Core, Info, RequestBody, Response, Route, Server

Class Method Summary collapse

Class Method Details

.define(title, version, &block) ⇒ Object



7
8
9
10
11
# File 'lib/modern/descriptor.rb', line 7

def self.define(title, version, &block)
  require 'modern/dsl'

  Modern::DSL::Root.build(title, version, &block)
end