From 9b430112d77a89b5e7d057b0af99043d219cb4f3 Mon Sep 17 00:00:00 2001 From: Joshua Moody Date: Thu, 21 Jan 2016 10:03:58 +0100 Subject: [PATCH] Template: doc methods and class as private --- lib/run_loop/template.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/run_loop/template.rb b/lib/run_loop/template.rb index 8e8230c5..bdefa8f8 100644 --- a/lib/run_loop/template.rb +++ b/lib/run_loop/template.rb @@ -2,21 +2,25 @@ module RunLoop - # class to break up javascript templates in to reusable chunks + # @!visibility private + # Class to break up javascript templates in to reusable chunks class UIAScriptTemplate < ERB + + # @!visibility private def initialize(template_root, template_relative_path) @template_root = template_root @template = File.read(File.join(@template_root, template_relative_path)) super(@template) end + # @!visibility private def render_template(template_relative_path) return UIAScriptTemplate.new(@template_root, template_relative_path).result end + # @!visibility private def result super(binding) end end - end