lib/magicka/method_builder.rb in magicka-0.1.0 vs lib/magicka/method_builder.rb in magicka-0.2.0
- old
+ new
@@ -17,7 +17,22 @@
template
end
build
end
+
+ # adds a mehtod +#template_folder+
+ #
+ # The method will always return the template folder given in the params
+ #
+ # @param template_folder [String] path to template folder
+ #
+ # @return [Array<Sinclair::MethodDefinition>]
+ def add_template_folder(folder)
+ add_method(:template_folder) do
+ folder
+ end
+
+ build
+ end
end
end