Changeset 726

Show
Ignore:
Timestamp:
06/30/08 18:38:29 (3 months ago)
Author:
raggi
Message:

Clean up warnings by adding explicit syntax.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/raggi/lib/eventmachine.rb

    r708 r726  
    4343 
    4444 
    45 $eventmachine_library ||= ENV['EVENTMACHINE_LIBRARY'] || :cascade 
     45unless defined?($eventmachine_library) 
     46  $eventmachine_library = ENV['EVENTMACHINE_LIBRARY'] || :cascade 
     47end 
    4648$eventmachine_library = $eventmachine_library.to_sym 
    4749 
     
    6062      require 'java' 
    6163      require 'jeventmachine' 
     64      $eventmachine_library = :java 
    6265    else 
    6366      require 'rubyeventmachine' 
     67      $eventmachine_library = :extension 
    6468    end 
    6569  rescue LoadError 
    6670    warn "# EventMachine fell back to pure ruby mode" if $DEBUG 
    6771    require 'pr_eventmachine' 
     72    $eventmachine_library = :pure_ruby 
    6873  end 
    6974end 
     
    12391244  # connection-specific arguments 
    12401245  # 
    1241   def self.new sig, *args #:nodoc: 
     1246  def self.new(sig, *args) #:nodoc: 
    12421247    allocate.instance_eval do 
    12431248      # Call a superclass's #initialize if it has one 
    1244       initialize *args 
     1249      initialize(*args) 
    12451250 
    12461251      # Store signature and run #post_init