Class: RSpec::Rails::Swagger::ResponseFormatters
- Inherits:
-
Object
- Object
- RSpec::Rails::Swagger::ResponseFormatters
- Defined in:
- lib/rspec/rails/swagger/response_formatters.rb
Defined Under Namespace
Classes: JSON
Class Method Summary collapse
Class Method Details
.[](key) ⇒ Object
29 30 31 |
# File 'lib/rspec/rails/swagger/response_formatters.rb', line 29 def [](key) @formatters[key] || @formatters[:default] end |
.register(format, callable) ⇒ Object
25 26 27 |
# File 'lib/rspec/rails/swagger/response_formatters.rb', line 25 def register(format, callable) @formatters[format] = callable end |