X7ROOT File Manager
Current Path:
/opt/alt/ruby34/share/gems/gems/rdoc-6.14.0/lib/rdoc/code_object
opt
/
alt
/
ruby34
/
share
/
gems
/
gems
/
rdoc-6.14.0
/
lib
/
rdoc
/
code_object
/
??
..
??
alias.rb
(2 KB)
??
anon_class.rb
(171 B)
??
any_method.rb
(8.62 KB)
??
attr.rb
(3.74 KB)
??
class_module.rb
(22.53 KB)
??
constant.rb
(3.62 KB)
??
context
??
context.rb
(29.58 KB)
??
extend.rb
(169 B)
??
ghost_method.rb
(143 B)
??
include.rb
(171 B)
??
meta_method.rb
(128 B)
??
method_attr.rb
(8.88 KB)
??
mixin.rb
(2.75 KB)
??
normal_class.rb
(2.13 KB)
??
normal_module.rb
(1.43 KB)
??
require.rb
(988 B)
??
single_class.rb
(512 B)
??
top_level.rb
(5.3 KB)
Editing: require.rb
# frozen_string_literal: true ## # A file loaded by \#require class RDoc::Require < RDoc::CodeObject ## # Name of the required file attr_accessor :name ## # Creates a new Require that loads +name+ with +comment+ def initialize(name, comment) super() @name = name.gsub(/'|"/, "") #' @top_level = nil self.comment = comment end def inspect # :nodoc: "#<%s:0x%x require '%s' in %s>" % [ self.class, object_id, @name, @parent ? @parent.base_name : '(unknown)' ] end def to_s # :nodoc: "require #{name} in: #{parent}" end ## # The RDoc::TopLevel corresponding to this require, or +nil+ if not found. def top_level @top_level ||= begin tl = RDoc::TopLevel.all_files_hash[name + '.rb'] if tl.nil? and RDoc::TopLevel.all_files.first.full_name =~ %r(^lib/) then # second chance tl = RDoc::TopLevel.all_files_hash['lib/' + name + '.rb'] end tl end end end
Upload File
Create Folder