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 =

TODO Fix this. It’s throwing errors when including the Ruby gem in downstream projects.

"2.0.3"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#components_pathObject

Returns the value of attribute components_path.



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

def components_path
  @components_path
end

#description_nameObject

Returns the value of attribute description_name.



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

def description_name
  @description_name
end

#title_nameObject

Returns the value of attribute title_name.



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

def title_name
  @title_name
end

Class Method Details

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



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

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