Sha256: d0627defde5677944183a6ca79aa86fc263ecf60a5fa18bcacd005bf55f105be

Contents?: true

Size: 668 Bytes

Versions: 9

Compression:

Stored size: 668 Bytes

Contents

require 'rdoc/usage'

# fix to work with rubygems (use current file instead of main)
def RDoc.usage_no_exit(*args)
  comment = File.open(File.join(File.dirname(__FILE__), %w(.. .. .. bin), File.basename($0))) do |file|
    find_comment(file)
  end

  comment = comment.gsub(/^\s*#/, '')

  markup = SM::SimpleMarkup.new
  flow_convertor = SM::ToFlow.new

  flow = markup.convert(comment, flow_convertor)

  format = "plain"

  unless args.empty?
    flow = extract_sections(flow, args)
  end

  options = RI::Options.instance
  if args = ENV["RI"]
    options.parse(args.split)
  end
  formatter = options.formatter.new(options, "")
  formatter.display_flow(flow)
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
mikewadhera-jetty-rails-0.9.1 lib/jetty_rails/config/rdoc_fix.rb
mikewadhera-jetty-rails-0.9.2 lib/jetty_rails/config/rdoc_fix.rb
mikewadhera-jetty-rails-0.9.3 lib/jetty_rails/config/rdoc_fix.rb
mikewadhera-jetty-rails-0.9 lib/jetty_rails/config/rdoc_fix.rb
nolman-jetty-rails-0.9.6-jruby lib/jetty_rails/config/rdoc_fix.rb
jetty-rails-0.8.1 lib/jetty_rails/config/rdoc_fix.rb
jetty-rails-0.6 lib/jetty_rails/config/rdoc_fix.rb
jetty-rails-0.8 lib/jetty_rails/config/rdoc_fix.rb
jetty-rails-0.7 lib/jetty_rails/config/rdoc_fix.rb