Bug #3331 ยป 0001-Suppress-Warning-class-self.patch
| ext/openssl/lib/openssl/x509-internal.rb | ||
|---|---|---|
|
end
|
||
|
end
|
||
|
class <<self
|
||
|
class << self
|
||
|
def parse_rfc2253(str, template=OBJECT_TYPE_TEMPLATE)
|
||
|
ary = OpenSSL::X509::Name::RFC2253DN.scan(str)
|
||
|
self.new(ary, template)
|
||
| lib/forwardable.rb | ||
|---|---|---|
|
FORWARDABLE_VERSION = "1.1.0"
|
||
|
@debug = nil
|
||
|
class<<self
|
||
|
class << self
|
||
|
attr_accessor :debug
|
||
|
end
|
||
| lib/irb/cmd/fork.rb | ||
|---|---|---|
|
module ExtendCommand
|
||
|
class Fork<Nop
|
||
|
def execute(&block)
|
||
|
pid = send ExtendCommand.irb_original_method_name("fork")
|
||
|
unless pid
|
||
|
class<<self
|
||
|
alias_method :exit, ExtendCommand.irb_original_method_name('exit')
|
||
|
end
|
||
|
if iterator?
|
||
|
begin
|
||
|
yield
|
||
|
ensure
|
||
|
exit
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
pid
|
||
|
pid = send ExtendCommand.irb_original_method_name("fork")
|
||
|
unless pid
|
||
|
class << self
|
||
|
alias_method :exit, ExtendCommand.irb_original_method_name('exit')
|
||
|
end
|
||
|
if iterator?
|
||
|
begin
|
||
|
yield
|
||
|
ensure
|
||
|
exit
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
pid
|
||
|
end
|
||
|
end
|
||
|
end
|
||
| lib/mutex_m.rb | ||
|---|---|---|
|
defined? unlock and
|
||
|
defined? try_lock and
|
||
|
defined? synchronize)
|
||
|
Mutex_m.define_aliases(class<<self;self;end)
|
||
|
Mutex_m.define_aliases(singleton_class)
|
||
|
end
|
||
|
mu_initialize
|
||
|
end
|
||
| lib/shell/process-controller.rb | ||
|---|---|---|
|
@BlockOutputMonitor = Mutex.new
|
||
|
@BlockOutputCV = ConditionVariable.new
|
||
|
class<<self
|
||
|
class << self
|
||
|
extend Forwardable
|
||
|
def_delegator("@ProcessControllersMonitor",
|
||
| lib/sync.rb | ||
|---|---|---|
|
defined? unlock and
|
||
|
defined? try_lock and
|
||
|
defined? synchronize)
|
||
|
Sync_m.define_aliases(class<<self;self;end)
|
||
|
Sync_m.define_aliases(singleton_class)
|
||
|
end
|
||
|
sync_initialize
|
||
|
end
|
||
| object.c | ||
|---|---|---|
|
* def self.one() end
|
||
|
* def two() end
|
||
|
* def Chatty.three() end
|
||
|
* class <<self
|
||
|
* class << self
|
||
|
* remove_method :three
|
||
|
* remove_method :one
|
||
|
* end
|
||