class RD::OutputFormatVisitor
Constants
- INCLUDE_SUFFIX
- OUTPUT_SUFFIX
-
must-have constants
Attributes
Public Class Methods
Source
# File lib/rd/output-format-visitor.rb, line 17 def initialize super @include_suffix = self.class::INCLUDE_SUFFIX.clone @filename = nil @input_filename = "-" end
Calls superclass method
Public Instance Methods
Source
# File lib/rd/output-format-visitor.rb, line 24 def apply_to_Include(element) fname = search_file(element.filename, element.tree.include_paths, @include_suffix) File.readlines(fname).join("") if fname end