Module: ApidocToGFM::Views::Helpers

Included in:
Example, Index
Defined in:
lib/apidoc_to_gfm/views/helpers.rb

Instance Method Summary collapse

Instance Method Details

#template_exists?Boolean

Returns:

  • (Boolean)


4
5
6
7
# File 'lib/apidoc_to_gfm/views/helpers.rb', line 4

def template_exists?
  path = File.join(self.template_path, self.template_name)
  File.exists? path
end

#template_path_from_gemObject



9
10
11
# File 'lib/apidoc_to_gfm/views/helpers.rb', line 9

def template_path_from_gem
  File.expand_path("../../../../templates", __FILE__)
end