Module: Apress::Documentation::Swagger::Schema::Extensions

Included in:
Apress::Documentation::Swagger::Schema
Defined in:
lib/apress/documentation/swagger/schema.rb

Instance Method Summary collapse

Instance Method Details

#swagger_path(*args, &block) ⇒ Object



24
25
26
27
# File 'lib/apress/documentation/swagger/schema.rb', line 24

def swagger_path(*args, &block)
  self.resource = true
  super
end

#swagger_schema(*args, &block) ⇒ Object



29
30
31
32
# File 'lib/apress/documentation/swagger/schema.rb', line 29

def swagger_schema(*args, &block)
  self.schema_block = block
  super
end