X7ROOT File Manager
Current Path:
/opt/alt/ruby34/share/gems/gems/rdoc-6.10.0/lib/rdoc/code_object
opt
/
alt
/
ruby34
/
share
/
gems
/
gems
/
rdoc-6.10.0
/
lib
/
rdoc
/
code_object
/
ðŸ“
..
📄
alias.rb
(2.12 KB)
📄
anon_class.rb
(171 B)
📄
any_method.rb
(8.55 KB)
📄
attr.rb
(3.76 KB)
📄
class_module.rb
(21.82 KB)
📄
constant.rb
(3.59 KB)
ðŸ“
context
📄
context.rb
(30.27 KB)
📄
extend.rb
(169 B)
📄
ghost_method.rb
(143 B)
📄
include.rb
(171 B)
📄
meta_method.rb
(128 B)
📄
method_attr.rb
(9.37 KB)
📄
mixin.rb
(2.75 KB)
📄
normal_class.rb
(2.13 KB)
📄
normal_module.rb
(1.43 KB)
📄
require.rb
(964 B)
📄
single_class.rb
(511 B)
📄
top_level.rb
(5.61 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_file_name, ] 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