1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

IRB never show RubyVM's doc

This commit is contained in:
aycabta 2019-05-29 06:08:25 +09:00
parent d390af3686
commit d341bb2857
2 changed files with 49 additions and 1 deletions

View file

@ -268,7 +268,17 @@ module IRB
end
RDocRIDriver = RDoc::RI::Driver.new
PerfectMatchedProc = proc { |matched|
PerfectMatchedProc = ->(matched) {
if matched =~ /\A(?:::)?RubyVM/
File.open(File.join(__dir__, 'ruby_logo.aa')) do |f|
RDocRIDriver.page do |io|
f.each_line do |l|
io.write(l)
end
end
end
return
end
namespace = retrieve_completion_data(matched, true)
return unless matched
if namespace.is_a?(Array)

38
lib/irb/ruby_logo.aa Normal file
View file

@ -0,0 +1,38 @@
-+smJYYN?mm-
HB"BBYT TQg NggT
9Q+g Nm,T 8g NJW
YS+ N2NJ"Sg N?
BQg #( gT Nggggk J
5j NJ NJ NNge
#Q #JJ NgT N(
@j bj mT J
Bj @/d NJ (
#q #(( NgT #J
5d #(t mT $d
#q @(@J NJB;
@( 5d ? HHH H HQmgggggggmN qD
5d #uN 2QdH E O
5 5JSd Nd NJH @d j
Fd @J4d s NQH #d (
#( #o6d Nd NgH #d #d
4 B&Od v NgT #d F
#( 9JGd NH NgUd F
#d #GJQ d NP $
#J #U+#Q N Q # j
j /W BQ+ BQ d NJ NJ
- NjJH HBIjTQggPJQgW N W k #J
#J b HYWgggN j s Nag d NN b #d
#J 5- D s Ngg N d Nd F
Fd BKH2 #+ s NNgg J Q J ]
F H @ J N y K(d P I
F4 E N? #d y #Q NJ E j
F W Nd q m Bg NxW N(H-
F d b @ m Hd gW vKJ
NJ d K d s Bg aT FDd
b # d N m BQ mV N>
e5 Nd #d NggggggQWH HHHH NJ -
m7 NW H N HSVO1z=?11-
NgTH bB kH WBHWWHBHWmQgg&gggggNNN
NNggggggNN