Class: Jbuilder::Schema

Inherits:
Object
  • Object
show all
Defined in:
lib/jbuilder/schema/template.rb,
lib/jbuilder/schema.rb

Defined Under Namespace

Modules: IgnoreSchemaMeta Classes: Renderer, Template

Constant Summary collapse

VERSION =

See ‘jbuilder/schema/version.rb`

JBUILDER_SCHEMA_VERSION

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#components_pathObject

Returns the value of attribute components_path.



17
18
19
# File 'lib/jbuilder/schema.rb', line 17

def components_path
  @components_path
end

#description_nameObject

Returns the value of attribute description_name.



17
18
19
# File 'lib/jbuilder/schema.rb', line 17

def description_name
  @description_name
end

#title_nameObject

Returns the value of attribute title_name.



17
18
19
# File 'lib/jbuilder/schema.rb', line 17

def title_name
  @title_name
end

Class Method Details

.renderer(paths = nil, locals: nil) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/jbuilder/schema.rb', line 22

def self.renderer(paths = nil, locals: nil)
  if paths.nil? && locals.nil?
    @renderer ||= Renderer.new("app/views")
  else
    Renderer.new(paths, locals)
  end
end