[ruby/irb] Use markdown format for docs
(https://github.com/ruby/irb/pull/890) * Convert irb.rb's document into markdown format * Hide should-be-private top-level methods from docs * Skip xmp.rb's docs * Declare lib/irb.rb's markup do it works in ruby/ruby too * Ignore docs folder https://github.com/ruby/irb/commit/e9a175e06b
This commit is contained in:
parent
f1682407c5
commit
137b52a881
1160
lib/irb.rb
1160
lib/irb.rb
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
module IRB
|
module IRB
|
||||||
class JobManager
|
class JobManager # :nodoc:
|
||||||
|
|
||||||
# Creates a new JobManager object
|
# Creates a new JobManager object
|
||||||
def initialize
|
def initialize
|
||||||
@ -166,12 +166,12 @@ module IRB
|
|||||||
@JobManager = JobManager.new
|
@JobManager = JobManager.new
|
||||||
|
|
||||||
# The current JobManager in the session
|
# The current JobManager in the session
|
||||||
def IRB.JobManager
|
def IRB.JobManager # :nodoc:
|
||||||
@JobManager
|
@JobManager
|
||||||
end
|
end
|
||||||
|
|
||||||
# The current Context in this session
|
# The current Context in this session
|
||||||
def IRB.CurrentContext
|
def IRB.CurrentContext # :nodoc:
|
||||||
IRB.JobManager.irb(Thread.current).context
|
IRB.JobManager.irb(Thread.current).context
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ module IRB
|
|||||||
#
|
#
|
||||||
# The optional +file+ argument is given to Context.new, along with the
|
# The optional +file+ argument is given to Context.new, along with the
|
||||||
# workspace created with the remaining arguments, see WorkSpace.new
|
# workspace created with the remaining arguments, see WorkSpace.new
|
||||||
def IRB.irb(file = nil, *main)
|
def IRB.irb(file = nil, *main) # :nodoc:
|
||||||
workspace = WorkSpace.new(*main)
|
workspace = WorkSpace.new(*main)
|
||||||
parent_thread = Thread.current
|
parent_thread = Thread.current
|
||||||
Thread.start do
|
Thread.start do
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
module IRB
|
module IRB
|
||||||
# Outputs the irb help message, see IRB@Command-Line+Options.
|
# Outputs the irb help message, see IRB@Command-Line+Options.
|
||||||
def IRB.print_usage
|
def IRB.print_usage # :nodoc:
|
||||||
lc = IRB.conf[:LC_MESSAGES]
|
lc = IRB.conf[:LC_MESSAGES]
|
||||||
path = lc.find("irb/help-message")
|
path = lc.find("irb/help-message")
|
||||||
space_line = false
|
space_line = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user