X7ROOT File Manager
Current Path:
/opt/alt/ruby33/share/ruby
opt
/
alt
/
ruby33
/
share
/
ruby
/
??
..
??
English.rb
(5.54 KB)
??
abbrev.rb
(3.47 KB)
??
base64.rb
(13.22 KB)
??
benchmark.rb
(18.42 KB)
??
bigdecimal
??
bigdecimal.rb
(130 B)
??
bundled_gems.rb
(6.86 KB)
??
cgi
??
cgi.rb
(9.83 KB)
??
coverage.rb
(368 B)
??
csv
??
csv.rb
(92.46 KB)
??
date.rb
(1.17 KB)
??
delegate.rb
(11.68 KB)
??
did_you_mean
??
did_you_mean.rb
(5.36 KB)
??
digest
??
digest.rb
(3.3 KB)
??
drb
??
drb.rb
(50 B)
??
erb
??
erb.rb
(14.53 KB)
??
error_highlight
??
error_highlight.rb
(84 B)
??
expect.rb
(2.19 KB)
??
fiddle
??
fiddle.rb
(2.88 KB)
??
fileutils.rb
(78.69 KB)
??
find.rb
(2.52 KB)
??
forwardable
??
forwardable.rb
(9.03 KB)
??
getoptlong.rb
(20.26 KB)
??
io
??
ipaddr.rb
(20.93 KB)
??
json
??
json.rb
(19.62 KB)
??
kconv.rb
(5.72 KB)
??
logger
??
logger.rb
(22.03 KB)
??
mkmf.rb
(88.69 KB)
??
monitor.rb
(6.75 KB)
??
mutex_m.rb
(2.36 KB)
??
net
??
objspace
??
objspace.rb
(4.14 KB)
??
observer.rb
(6.38 KB)
??
open-uri.rb
(25.84 KB)
??
open3
??
open3.rb
(47.51 KB)
??
openssl
??
openssl.rb
(1.03 KB)
??
optionparser.rb
(59 B)
??
optparse
??
optparse.rb
(61.82 KB)
??
ostruct.rb
(14.22 KB)
??
pathname.rb
(16.85 KB)
??
pp.rb
(17.24 KB)
??
prettyprint.rb
(15.93 KB)
??
prism
??
prism.rb
(3.17 KB)
??
pstore.rb
(20.36 KB)
??
psych
??
psych.rb
(24.44 KB)
??
random
??
readline.rb
(215 B)
??
reline
??
reline.rb
(14.7 KB)
??
resolv-replace.rb
(1.76 KB)
??
resolv.rb
(85.03 KB)
??
rinda
??
ripper
??
ripper.rb
(2.44 KB)
??
ruby_vm
??
securerandom.rb
(2.06 KB)
??
set
??
set.rb
(24.94 KB)
??
shellwords.rb
(7.11 KB)
??
singleton.rb
(3.94 KB)
??
socket.rb
(44.04 KB)
??
syntax_suggest
??
syntax_suggest.rb
(74 B)
??
syslog
??
tempfile.rb
(14.73 KB)
??
time.rb
(23.74 KB)
??
timeout.rb
(5.69 KB)
??
tmpdir.rb
(4.93 KB)
??
tsort.rb
(14.29 KB)
??
un.rb
(11.17 KB)
??
unicode_normalize
??
uri
??
uri.rb
(3.06 KB)
??
vendor_ruby
??
weakref.rb
(1.36 KB)
??
yaml
??
yaml.rb
(2.13 KB)
Editing: mutex_m.rb
# frozen_string_literal: false # # mutex_m.rb - # $Release Version: 3.0$ # $Revision: 1.7 $ # Original from mutex.rb # by Keiju ISHITSUKA(keiju@ishitsuka.com) # modified by matz # patched by akira yamada # # -- # = mutex_m.rb # # When 'mutex_m' is required, any object that extends or includes Mutex_m will # be treated like a Mutex. # # Start by requiring the standard library Mutex_m: # # require "mutex_m.rb" # # From here you can extend an object with Mutex instance methods: # # obj = Object.new # obj.extend Mutex_m # # Or mixin Mutex_m into your module to your class inherit Mutex instance # methods --- remember to call super() in your class initialize method. # # class Foo # include Mutex_m # def initialize # # ... # super() # end # # ... # end # obj = Foo.new # # this obj can be handled like Mutex # module Mutex_m VERSION = "0.2.0" Ractor.make_shareable(VERSION) if defined?(Ractor) def Mutex_m.define_aliases(cl) # :nodoc: cl.alias_method(:locked?, :mu_locked?) cl.alias_method(:lock, :mu_lock) cl.alias_method(:unlock, :mu_unlock) cl.alias_method(:try_lock, :mu_try_lock) cl.alias_method(:synchronize, :mu_synchronize) end def Mutex_m.append_features(cl) # :nodoc: super define_aliases(cl) unless cl.instance_of?(Module) end def Mutex_m.extend_object(obj) # :nodoc: super obj.mu_extended end def mu_extended # :nodoc: unless (defined? locked? and defined? lock and defined? unlock and defined? try_lock and defined? synchronize) Mutex_m.define_aliases(singleton_class) end mu_initialize end # See Thread::Mutex#synchronize def mu_synchronize(&block) @_mutex.synchronize(&block) end # See Thread::Mutex#locked? def mu_locked? @_mutex.locked? end # See Thread::Mutex#try_lock def mu_try_lock @_mutex.try_lock end # See Thread::Mutex#lock def mu_lock @_mutex.lock end # See Thread::Mutex#unlock def mu_unlock @_mutex.unlock end # See Thread::Mutex#sleep def sleep(timeout = nil) @_mutex.sleep(timeout) end private def mu_initialize # :nodoc: @_mutex = Thread::Mutex.new end def initialize(*args) # :nodoc: mu_initialize super end ruby2_keywords(:initialize) if respond_to?(:ruby2_keywords, true) end
Upload File
Create Folder