Class: Magicka::MethodBuilder Private

Inherits:
Sinclair
  • Object
show all
Defined in:
lib/magicka/method_builder.rb

Overview

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

class responsible for building methods on Element

Instance Method Summary collapse

Instance Method Details

#add_template(template) ⇒ 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

The method will always return the template given in the params

Parameters:

  • template (String)

    path to template file

Returns:

  • (Array<Sinclair::MethodDefinition>)


15
16
17
18
19
20
21
# File 'lib/magicka/method_builder.rb', line 15

def add_template(template)
  add_method(:template) do
    template
  end

  build
end