123456789_123456789_123456789_123456789_123456789_

Class: RDoc::Markup::Include

Relationships & Source Files
Inherits: Object
Defined in: lib/rdoc/markup/include.rb

Overview

A file included at generation time. Objects of this class are created by ::RDoc::RD for an extension-less include.

This implementation in incomplete.

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(file, include_path) ⇒ Include

Creates a new include that will import #file from #include_path

[ GitHub ]

  
# File 'lib/rdoc/markup/include.rb', line 22

def initialize file, include_path
  @file = file
  @include_path = include_path
end

Instance Attribute Details

#file (readonly)

The filename to be included, without extension

[ GitHub ]

  
# File 'lib/rdoc/markup/include.rb', line 12

attr_reader :file

#include_path (readonly)

Directories to search for #file

[ GitHub ]

  
# File 'lib/rdoc/markup/include.rb', line 17

attr_reader :include_path