Method: Magicka::Element::MethodBuilder#add_template_folder

Defined in:
lib/magicka/element/method_builder.rb

#add_template_folder(folder) ⇒ Array<Sinclair::MethodDefinition>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

adds a mehtod #template_folder

The method will always return the template folder given in the params

Parameters:

  • folder (String)

    path to template folder

Returns:

  • (Array<Sinclair::MethodDefinition>)


31
32
33
34
35
36
37
# File 'lib/magicka/element/method_builder.rb', line 31

def add_template_folder(folder)
  add_method(:template_folder) do
    folder
  end

  build
end