Module: Analytics::Templates
- Defined in:
- lib/ios_analytics_cli/templates/templates.rb
Class Method Summary collapse
-
.tmpl_at(path) ⇒ Object
Returns the template at provided path.
Class Method Details
.tmpl_at(path) ⇒ Object
Returns the template at provided path. Path is relative to the path of this file. E.g. to get file at templates/swift/test, call tmpl_at(‘swift/test’).
7 8 9 10 |
# File 'lib/ios_analytics_cli/templates/templates.rb', line 7 def self.tmpl_at(path) final_path = File.join(__dir__, path) File.open(final_path, &:read) end |