Class: Object

Inherits:
BasicObject
Defined in:
lib/avm/patches/object/template.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.templateObject



8
9
10
# File 'lib/avm/patches/object/template.rb', line 8

def template
  @template ||= ::Avm::Templates.template(name.underscore)
end

.template_pathObject



12
13
14
# File 'lib/avm/patches/object/template.rb', line 12

def template_path
  @template_path ||= ::Avm::Templates.template_path(name.underscore)
end

Instance Method Details

#templateObject



17
18
19
# File 'lib/avm/patches/object/template.rb', line 17

def template
  self.class.template
end

#template_pathObject



21
22
23
# File 'lib/avm/patches/object/template.rb', line 21

def template_path
  self.class.template_path
end