Class: Swagger::DSL::Components

Inherits:
Hash
  • Object
show all
Defined in:
lib/swagger/dsl/components.rb

Constant Summary collapse

STRING =
"".freeze

Instance Method Summary collapse

Instance Method Details

#[](name) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/swagger/dsl/components.rb', line 10

def [](name)
  # for autoload
  if !Swagger::DSL.current.config.eager && STRING.respond_to?(:classify) && STRING.respond_to?(:safe_constantize)
    serializer_name(name).classify.safe_constantize
  end
  super(name)
end