Changeset 196

Show
Ignore:
Timestamp:
11/20/04 14:41:16 (4 years ago)
Author:
ged
Message:

-- More TypeCheck? -> ArgCheck? fixes.
-- Comment and aesthetic fixes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/simplest-thing/lib/fm/mixins.rb

    r188 r196  
    181181        end 
    182182 
    183     end # module TypeCheckFunctions 
     183    end # module ArgCheckFunctions 
    184184 
    185185 
     
    503503                @debugLevel = value 
    504504            else 
    505                 raise TypeError, "Cannot set debugging level to #{value.inspect} (#{value.class.name})" 
     505                raise TypeError,  
     506                    "Cannot set debugging level to %p (%s)" % 
     507                    [ value, value.class ] 
    506508            end 
    507509        end 
     
    729731            # Define the mutator 
    730732            define_method( "#{sym}=".intern ) {|arg| 
    731                 FaerieMUD::TypeCheckFunctions::checkType( arg, *types ) 
     733                FaerieMUD::ArgCheckFunctions::checkType( arg, *types ) 
    732734                @mutex = Sync::new unless defined? @mutex 
    733735                @mutex.synchronize( Sync::EX ) { 
     
    929931        ### <div> (if +inline+ is +false+) or a <span>. 
    930932        def arrayElement( object, inline=false ) 
    931             TypeCheckFunctions::checkType( object, ::Array ) 
     933            FaerieMUD::ArgCheckFunctions::checkType( object, ::Array ) 
    932934            func = inline ? method(:span) : method(:div) 
    933935 
     
    949951        ### either a <div> (if +inline+ is +false+) or a <span>. 
    950952        def hashElement( object, inline=false ) 
    951             TypeCheckFunctions::checkType( object, ::Hash ) 
     953            FaerieMUD::ArgCheckFunctions::checkType( object, ::Hash ) 
    952954            func = inline ? method(:span) : method(:div) 
    953955