Sha256: 2976dad01cd1d1a2e420a8c9767686cf46d4712c51538fbe0a5182921069654c

Contents?: true

Size: 582 Bytes

Versions: 30

Compression:

Stored size: 582 Bytes

Contents

=begin
= rd2rmi-lib.rb
library to output RMI.
=end
require "rd/rdvisitor"

module RD
  class RD2RMIVisitor < RDVisitor
    include AutoLabel
    include MethodParse

    OUTPUT_SUFFIX = "rmi"
    INCLUDE_SUFFIX = ["rmi"]
    
    def visit(tree)
      ret = ""

      prepare_labels(tree)
      
      index = make_method_index(tree)
      index.each do |i|
	i[1] = kind2str(i[1])
	i[3] = @filename
	i[4] = refer(i[0]+i[1]+i[2])
	ret << "$method_index.push(#{i.inspect})\n"
      end
      ret
    end
  end # class RD2RMIVisitor
end # module RD

$Visitor_Class = RD::RD2RMIVisitor

Version data entries

30 entries across 29 versions & 4 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/rdtool-0.6.38/lib/rd/rd2rmi-lib.rb
tdiary-5.0.8 vendor/bundle/gems/rdtool-0.6.38/lib/rd/rd2rmi-lib.rb
tdiary-5.0.5 vendor/bundle/gems/rdtool-0.6.38/lib/rd/rd2rmi-lib.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/rdtool-0.6.38/lib/rd/rd2rmi-lib.rb
tdiary-5.0.4 vendor/bundle/gems/rdtool-0.6.38/lib/rd/rd2rmi-lib.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/rdtool-0.6.38/lib/rd/rd2rmi-lib.rb
nishidayuya-rd2odt-0.1.1.20090701.01 lib/rd2odt/rdtool/rd/rd2rmi-lib.rb
nishidayuya-rd2odt-0.1.1.20090704.01 lib/rd2odt/rdtool/rd/rd2rmi-lib.rb
nishidayuya-rd2odt-0.1.1.20090706.01 lib/rd2odt/rdtool/rd/rd2rmi-lib.rb
nishidayuya-rd2odt-0.1.1 lib/rd2odt/rdtool/rd/rd2rmi-lib.rb
tdiary-3.2.2.20130518 vendor/rdtool-0.6.38/lib/rd/rd2rmi-lib.rb
tdiary-3.2.2.20130508 vendor/rdtool-0.6.38/lib/rd/rd2rmi-lib.rb
tdiary-3.2.2.20130507 vendor/rdtool-0.6.38/lib/rd/rd2rmi-lib.rb
rdtool-0.6.38 lib/rd/rd2rmi-lib.rb
rdtool-0.6.37 lib/rd/rd2rmi-lib.rb
rdtool-0.6.36 lib/rd/rd2rmi-lib.rb
rdtool-0.6.35 lib/rd/rd2rmi-lib.rb
rdtool-0.6.34 lib/rd/rd2rmi-lib.rb
rdtool-0.6.33 lib/rd/rd2rmi-lib.rb
rdtool-0.6.32 lib/rd/rd2rmi-lib.rb