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: 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.



31
32
33
# File 'lib/jbuilder/schema.rb', line 31

def components_path
  @components_path
end

#description_nameObject

Returns the value of attribute description_name.



31
32
33
# File 'lib/jbuilder/schema.rb', line 31

def description_name
  @description_name
end

#title_nameObject

Returns the value of attribute title_name.



31
32
33
# File 'lib/jbuilder/schema.rb', line 31

def title_name
  @title_name
end

Class Method Details

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



37
38
39
40
41
42
43
# File 'lib/jbuilder/schema.rb', line 37

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