class RD::OutputFormatVisitor
Constants
- INCLUDE_SUFFIX
- OUTPUT_SUFFIX
must-have constants
Attributes
filename[RW]
include_suffix[RW]
input_filename[RW]
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/rd/output-format-visitor.rb, line 17 def initialize super @include_suffix = self.class::INCLUDE_SUFFIX.clone @filename = nil @input_filename = "-" end
Public Instance Methods
apply_to_Include(element)
click to toggle 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