Module: JsonSchemaView::Renderers
- Defined in:
- lib/json_schema_view/renderers.rb,
lib/json_schema_view/renderers/base.rb,
lib/json_schema_view/renderers/json.rb,
lib/json_schema_view/renderers/react_on_rails.rb
Overview
Renderers module contains classes that render a component.
Defined Under Namespace
Classes: Base, Json, ReactOnRails
Class Method Summary collapse
Class Method Details
.find_by_name(name) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/json_schema_view/renderers.rb', line 11 def self.find_by_name(name) case name when :json Json when :react_on_rails ReactOnRails else raise ArgumentError, "Unknown renderer: #{name}" end end |