Module: JbuilderSchema
- Defined in:
- lib/jbuilder/schema.rb,
lib/jbuilder/schema/builder.rb,
lib/jbuilder/schema/version.rb,
lib/jbuilder/schema/renderer.rb,
lib/jbuilder/schema/resolver.rb,
lib/jbuilder/schema/template.rb,
lib/jbuilder/schema/configuration.rb
Overview
Defined Under Namespace
Classes: Builder, Configuration, Renderer, Resolver, Template
Constant Summary
collapse
- VERSION =
"1.0.3"
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.configuration ⇒ Object
6
7
8
|
# File 'lib/jbuilder/schema/configuration.rb', line 6
def configuration
@configuration ||= Configuration.new
end
|
14
15
16
|
# File 'lib/jbuilder/schema/configuration.rb', line 14
def configure
yield(configuration)
end
|
.reset ⇒ Object
10
11
12
|
# File 'lib/jbuilder/schema/configuration.rb', line 10
def reset
@configuration = Configuration.new
end
|
Instance Method Details
#jbuilder_schema(path, **options) ⇒ Object
9
10
11
|
# File 'lib/jbuilder/schema.rb', line 9
def jbuilder_schema(path, **options)
Builder.new(path, **options).schema!
end
|