mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
Sync RDoc 6.14.0
This commit is contained in:
parent
ca1ea95784
commit
03eb777c69
185 changed files with 2008 additions and 1655 deletions
1
lib/rdoc/rd/.document
Normal file
1
lib/rdoc/rd/.document
Normal file
|
@ -0,0 +1 @@
|
|||
inline.rb
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
#
|
||||
# DO NOT MODIFY!!!!
|
||||
# This file is automatically generated by Racc 1.8.1
|
||||
# This file is automatically generated by Racc 1.8.0
|
||||
# from Racc grammar file "block_parser.ry".
|
||||
#
|
||||
|
||||
|
@ -23,7 +23,7 @@ unless $".find {|p| p.end_with?('/racc/info.rb')}
|
|||
$".push "#{__dir__}/racc/info.rb"
|
||||
|
||||
module Racc
|
||||
VERSION = '1.8.1'
|
||||
VERSION = '1.8.0'
|
||||
Version = VERSION
|
||||
Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
|
||||
end
|
||||
|
@ -38,7 +38,7 @@ unless defined?(::ParseError)
|
|||
ParseError = Racc::ParseError # :nodoc:
|
||||
end
|
||||
|
||||
# Racc is an LALR(1) parser generator.
|
||||
# Racc is a LALR(1) parser generator.
|
||||
# It is written in Ruby itself, and generates Ruby programs.
|
||||
#
|
||||
# == Command-line Reference
|
||||
|
|
|
@ -20,7 +20,7 @@ class RDoc::RD::Inline
|
|||
# +rdoc+ may be another Inline or a String. If +reference+ is not given it
|
||||
# will use the text from +rdoc+.
|
||||
|
||||
def self.new rdoc, reference = rdoc
|
||||
def self.new(rdoc, reference = rdoc)
|
||||
if self === rdoc and reference.equal? rdoc then
|
||||
rdoc
|
||||
else
|
||||
|
@ -31,7 +31,7 @@ class RDoc::RD::Inline
|
|||
##
|
||||
# Initializes the Inline with +rdoc+ and +inline+
|
||||
|
||||
def initialize rdoc, reference # :not-new:
|
||||
def initialize(rdoc, reference) # :not-new:
|
||||
@reference = reference.equal?(rdoc) ? reference.dup : reference
|
||||
|
||||
# unpack
|
||||
|
@ -39,7 +39,7 @@ class RDoc::RD::Inline
|
|||
@rdoc = rdoc
|
||||
end
|
||||
|
||||
def == other # :nodoc:
|
||||
def ==(other) # :nodoc:
|
||||
self.class === other and
|
||||
@reference == other.reference and @rdoc == other.rdoc
|
||||
end
|
||||
|
@ -47,7 +47,7 @@ class RDoc::RD::Inline
|
|||
##
|
||||
# Appends +more+ to this inline. +more+ may be a String or another Inline.
|
||||
|
||||
def append more
|
||||
def append(more)
|
||||
case more
|
||||
when String then
|
||||
@reference += more
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
#
|
||||
# DO NOT MODIFY!!!!
|
||||
# This file is automatically generated by Racc 1.8.1
|
||||
# This file is automatically generated by Racc 1.8.0
|
||||
# from Racc grammar file "inline_parser.ry".
|
||||
#
|
||||
|
||||
|
@ -23,7 +23,7 @@ unless $".find {|p| p.end_with?('/racc/info.rb')}
|
|||
$".push "#{__dir__}/racc/info.rb"
|
||||
|
||||
module Racc
|
||||
VERSION = '1.8.1'
|
||||
VERSION = '1.8.0'
|
||||
Version = VERSION
|
||||
Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
|
||||
end
|
||||
|
@ -38,7 +38,7 @@ unless defined?(::ParseError)
|
|||
ParseError = Racc::ParseError # :nodoc:
|
||||
end
|
||||
|
||||
# Racc is an LALR(1) parser generator.
|
||||
# Racc is a LALR(1) parser generator.
|
||||
# It is written in Ruby itself, and generates Ruby programs.
|
||||
#
|
||||
# == Command-line Reference
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue