X7ROOT File Manager
Current Path:
/opt/alt/ruby25/lib64/ruby/2.5.0/rdoc
opt
/
alt
/
ruby25
/
lib64
/
ruby
/
2.5.0
/
rdoc
/
ðŸ“
..
📄
alias.rb
(2.12 KB)
📄
anon_class.rb
(172 B)
📄
any_method.rb
(7.04 KB)
📄
attr.rb
(3.76 KB)
📄
class_module.rb
(19.81 KB)
📄
code_object.rb
(9.26 KB)
📄
code_objects.rb
(151 B)
📄
comment.rb
(5.59 KB)
📄
constant.rb
(3.59 KB)
ðŸ“
context
📄
context.rb
(29.41 KB)
📄
cross_reference.rb
(5.85 KB)
📄
encoding.rb
(3.67 KB)
📄
erb_partial.rb
(400 B)
📄
erbio.rb
(824 B)
📄
extend.rb
(170 B)
ðŸ“
generator
📄
generator.rb
(1.79 KB)
📄
ghost_method.rb
(144 B)
ðŸ“
i18n
📄
i18n.rb
(180 B)
📄
include.rb
(172 B)
📄
known_classes.rb
(2.62 KB)
ðŸ“
markdown
📄
markdown.rb
(377.04 KB)
ðŸ“
markup
📄
markup.rb
(28.27 KB)
📄
meta_method.rb
(129 B)
📄
method_attr.rb
(9.03 KB)
📄
mixin.rb
(2.75 KB)
📄
normal_class.rb
(2.13 KB)
📄
normal_module.rb
(1.43 KB)
📄
options.rb
(30.34 KB)
ðŸ“
parser
📄
parser.rb
(7.04 KB)
ðŸ“
rd
📄
rd.rb
(3.57 KB)
📄
rdoc.rb
(13.49 KB)
📄
require.rb
(965 B)
ðŸ“
ri
📄
ri.rb
(345 B)
📄
rubygems_hook.rb
(5.14 KB)
📄
servlet.rb
(11.91 KB)
📄
single_class.rb
(408 B)
ðŸ“
stats
📄
stats.rb
(10.48 KB)
📄
store.rb
(21.94 KB)
📄
task.rb
(7.67 KB)
📄
test_case.rb
(3.79 KB)
📄
text.rb
(7.3 KB)
📄
token_stream.rb
(3.1 KB)
📄
tom_doc.rb
(6.3 KB)
📄
top_level.rb
(5.44 KB)
Editing: mixin.rb
# frozen_string_literal: true ## # A Mixin adds features from a module into another context. RDoc::Include and # RDoc::Extend are both mixins. class RDoc::Mixin < RDoc::CodeObject ## # Name of included module attr_accessor :name ## # Creates a new Mixin for +name+ with +comment+ def initialize(name, comment) super() @name = name self.comment = comment @module = nil # cache for module if found end ## # Mixins are sorted by name def <=> other return unless self.class === other name <=> other.name end def == other # :nodoc: self.class === other and @name == other.name end alias eql? == # :nodoc: ## # Full name based on #module def full_name m = self.module RDoc::ClassModule === m ? m.full_name : @name end def hash # :nodoc: [@name, self.module].hash end def inspect # :nodoc: "#<%s:0x%x %s.%s %s>" % [ self.class, object_id, parent_name, self.class.name.downcase, @name, ] end ## # Attempts to locate the included module object. Returns the name if not # known. # # The scoping rules of Ruby to resolve the name of an included module are: # - first look into the children of the current context; # - if not found, look into the children of included modules, # in reverse inclusion order; # - if still not found, go up the hierarchy of names. # # This method has <code>O(n!)</code> behavior when the module calling # include is referencing nonexistent modules. Avoid calling #module until # after all the files are parsed. This behavior is due to ruby's constant # lookup behavior. # # As of the beginning of October, 2011, no gem includes nonexistent modules. def module return @module if @module # search the current context return @name unless parent full_name = parent.child_name(@name) @module = @store.modules_hash[full_name] return @module if @module return @name if @name =~ /^::/ # search the includes before this one, in reverse order searched = parent.includes.take_while { |i| i != self }.reverse searched.each do |i| inc = i.module next if String === inc full_name = inc.child_name(@name) @module = @store.modules_hash[full_name] return @module if @module end # go up the hierarchy of names up = parent.parent while up full_name = up.child_name(@name) @module = @store.modules_hash[full_name] return @module if @module up = up.parent end @name end ## # Sets the store for this class or module and its contained code objects. def store= store super @file = @store.add_file @file.full_name if @file end def to_s # :nodoc: "#{self.class.name.downcase} #@name in: #{parent}" end end
Upload File
Create Folder