Class: YARD::Server::Commands::FramesCommand

Inherits:
DisplayObjectCommand show all
Defined in:
lib/yard/server/commands/frames_command.rb

Overview

Displays an object wrapped in frames

Since:

  • 0.6.0

Instance Attribute Summary

Attributes inherited from LibraryCommand

#incremental, #library, #options, #serializer, #single_library, #use_fork

Attributes inherited from Base

#adapter, #body, #caching, #command_options, #headers, #path, #request, #status

Instance Method Summary collapse

Methods inherited from DisplayObjectCommand

#index, #not_found

Methods included from DocServerHelper

#abs_url, #base_path, #mtime, #mtime_url, #router, #url_for, #url_for_file, #url_for_frameset, #url_for_index, #url_for_list, #url_for_main

Methods inherited from LibraryCommand

#call, #initialize

Methods inherited from Base

#call, #initialize

Constructor Details

This class inherits a constructor from YARD::Server::Commands::LibraryCommand

Instance Method Details

#runObject

Since:

  • 0.6.0



7
8
9
10
11
12
# File 'lib/yard/server/commands/frames_command.rb', line 7

def run
  options.update(:frames => true, :type => :fulldoc)
  tpl = fulldoc_template
  tpl.generate_frameset
  cache(tpl.contents)
end