Changeset 759

Show
Ignore:
Timestamp:
10/26/07 02:56:55 (10 months ago)
Author:
evanweaver
Message:

grammar, rename a local var

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tags/rel_1-0-2/lib/mongrel/configurator.rb

    r758 r759  
    3939 
    4040    # You pass in initial defaults and then a block to continue configuring. 
    41     def initialize(defaults={}, &blk) 
     41    def initialize(defaults={}, &block) 
    4242      @listener = nil 
    4343      @listener_name = nil 
     
    4747      @pid_file = defaults[:pid_file] 
    4848 
    49       if bl
    50         cloaker(&blk).bind(self).call 
    51       end 
    52     end 
    53  
    54     # Change privilege of the process to specified user and group. 
     49      if bloc
     50        cloaker(&block).bind(self).call 
     51      end 
     52    end 
     53 
     54    # Change privileges of the process to specified user and group. 
    5555    def change_privilege(user, group) 
    5656      begin 
     
    106106 
    107107    # Do not call this.  You were warned. 
    108     def cloaker(&blk) 
     108    def cloaker(&block) 
    109109      cloaking_class.class_eval do 
    110         define_method :cloaker_, &bl
     110        define_method :cloaker_, &bloc
    111111        meth = instance_method( :cloaker_ ) 
    112112        remove_method :cloaker_ 
     
    136136    # * :group => Group to change to, must have :user as well. 
    137137    # 
    138     def listener(options={},&blk) 
     138    def listener(options={},&block) 
    139139      raise "Cannot call listener inside another listener block." if (@listener or @listener_name) 
    140140      ops = resolve_defaults(options) 
     
    152152 
    153153      # Does the actual cloaking operation to give the new implicit self. 
    154       if bl
    155         cloaker(&blk).bind(self).call 
     154      if bloc
     155        cloaker(&block).bind(self).call 
    156156      end 
    157157