Skip to content

Commit

Permalink
Template: doc methods and class as private
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoody committed Jan 21, 2016
1 parent a56f9d0 commit 9b43011
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/run_loop/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9b43011

Please sign in to comment.