Sha256: f889411924626527b013bda184331229c5a22aca3fae60c74f88e4a802c7cb96

Contents?: true

Size: 658 Bytes

Versions: 10

Compression:

Stored size: 658 Bytes

Contents

require 'rd/visitor'
require 'rd/rd-struct'
require 'rd/search-file'

module RD
  class OutputFormatVisitor < Visitor
    include SearchFile

    # must-have constants
    OUTPUT_SUFFIX = ""
    INCLUDE_SUFFIX = []

    attr_accessor :include_suffix
    attr_accessor :filename
    attr_accessor :input_filename

    def initialize
      super
      @include_suffix = self.class::INCLUDE_SUFFIX.clone
      @filename = nil
      @input_filename = "-"
    end

    def apply_to_Include(element)
      fname = search_file(element.filename, element.tree.include_paths,
			  @include_suffix)
      File.readlines(fname).join("") if fname
    end
  end 
end # RD

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/rdtool-0.6.38/lib/rd/output-format-visitor.rb
tdiary-5.0.8 vendor/bundle/gems/rdtool-0.6.38/lib/rd/output-format-visitor.rb
tdiary-5.0.5 vendor/bundle/gems/rdtool-0.6.38/lib/rd/output-format-visitor.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/rdtool-0.6.38/lib/rd/output-format-visitor.rb
tdiary-5.0.4 vendor/bundle/gems/rdtool-0.6.38/lib/rd/output-format-visitor.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/rdtool-0.6.38/lib/rd/output-format-visitor.rb
tdiary-3.2.2.20130518 vendor/rdtool-0.6.38/lib/rd/output-format-visitor.rb
tdiary-3.2.2.20130508 vendor/rdtool-0.6.38/lib/rd/output-format-visitor.rb
tdiary-3.2.2.20130507 vendor/rdtool-0.6.38/lib/rd/output-format-visitor.rb
rdtool-0.6.38 lib/rd/output-format-visitor.rb