Project

General

Profile

Bug #3331 ยป 0001-Suppress-Warning-class-self.patch

Eregon (Benoit Daloze), 05/22/2010 10:22 PM

View differences:

ext/openssl/lib/openssl/x509-internal.rb
135 135
        end
136 136
      end
137 137

  
138
      class <<self
138
      class << self
139 139
        def parse_rfc2253(str, template=OBJECT_TYPE_TEMPLATE)
140 140
          ary = OpenSSL::X509::Name::RFC2253DN.scan(str)
141 141
          self.new(ary, template)
lib/forwardable.rb
135 135
  FORWARDABLE_VERSION = "1.1.0"
136 136

  
137 137
  @debug = nil
138
  class<<self
138
  class << self
139 139
    attr_accessor :debug
140 140
  end
141 141

  
lib/irb/cmd/fork.rb
16 16
  module ExtendCommand
17 17
    class Fork<Nop
18 18
      def execute(&block)
19
	pid = send ExtendCommand.irb_original_method_name("fork")
20
	unless pid
21
	  class<<self
22
	    alias_method :exit, ExtendCommand.irb_original_method_name('exit')
23
	  end
24
	  if iterator?
25
	    begin
26
	      yield
27
	    ensure
28
	      exit
29
	    end
30
	  end
31
	end
32
	pid
19
        pid = send ExtendCommand.irb_original_method_name("fork")
20
        unless pid
21
          class << self
22
            alias_method :exit, ExtendCommand.irb_original_method_name('exit')
23
          end
24
          if iterator?
25
            begin
26
              yield
27
            ensure
28
              exit
29
            end
30
          end
31
        end
32
        pid
33 33
      end
34 34
    end
35 35
  end
lib/mutex_m.rb
52 52
	    defined? unlock and
53 53
	    defined? try_lock and
54 54
	    defined? synchronize)
55
      Mutex_m.define_aliases(class<<self;self;end)
55
      Mutex_m.define_aliases(singleton_class)
56 56
    end
57 57
    mu_initialize
58 58
  end
lib/shell/process-controller.rb
23 23
    @BlockOutputMonitor = Mutex.new
24 24
    @BlockOutputCV = ConditionVariable.new
25 25

  
26
    class<<self
26
    class << self
27 27
      extend Forwardable
28 28

  
29 29
      def_delegator("@ProcessControllersMonitor",
lib/sync.rb
106 106
	    defined? unlock and
107 107
	    defined? try_lock and
108 108
	    defined? synchronize)
109
      Sync_m.define_aliases(class<<self;self;end)
109
      Sync_m.define_aliases(singleton_class)
110 110
    end
111 111
    sync_initialize
112 112
  end
object.c
608 608
 *       def self.one()     end
609 609
 *       def two()          end
610 610
 *       def Chatty.three() end
611
 *       class <<self
611
 *       class << self
612 612
 *         remove_method :three
613 613
 *         remove_method :one
614 614
 *       end
615
-