Method: RGovData::Template.path

Defined in:
lib/rgovdata/data/template.rb

.path(name, realm = nil) ⇒ Object

Returns the template file path name is the filename realm if specified is the subdirectory



11
12
13
14
15
16
# File 'lib/rgovdata/data/template.rb', line 11

def path(name, realm = nil)
  extra_path = [realm,name].compact.map(&:to_s)
  Pathname.new(File.dirname(__FILE__)).join(*extra_path).to_s
rescue
  nil
end