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

Configuration

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

.configurationObject



6
7
8
# File 'lib/jbuilder/schema/configuration.rb', line 6

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



14
15
16
# File 'lib/jbuilder/schema/configuration.rb', line 14

def configure
  yield(configuration)
end

.resetObject



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