Method: HaveAPI::Fs::Components::HtmlHelpFile#initialize

Defined in:
lib/haveapi/fs/components/html_help_file.rb

#initialize(*args) ⇒ HtmlHelpFile

Returns a new instance of HtmlHelpFile.



3
4
5
6
7
8
9
10
11
# File 'lib/haveapi/fs/components/html_help_file.rb', line 3

def initialize(*args)
  super
  
  @layout = ERB.new(::File.open(template_path('layout')).read, 0, '-')
  @template = ERB.new(
      ::File.open(template_path(@c.class)).read,
      0, '-'
  )
end