Method: Generators::HTMLPuppetPlugin#initialize

Defined in:
lib/puppet/util/rdoc/generators/puppet_generator.rb

#initialize(context, html_file, prefix, options) ⇒ HTMLPuppetPlugin



708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
# File 'lib/puppet/util/rdoc/generators/puppet_generator.rb', line 708

def initialize(context, html_file, prefix, options)
  super(context, options)

  @html_file = html_file
  @is_module = false
  @values    = {}

  context.viewer = self

  if options.all_one_file
    @path = context.full_name
  else
    @path = http_url(context.full_name, prefix)
  end

  AllReferences.add("PLUGIN(#{@context.full_name})", self)
end