Changeset 196
- Timestamp:
- 11/20/04 14:41:16 (4 years ago)
- Files:
-
- 1 modified
-
branches/simplest-thing/lib/fm/mixins.rb (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simplest-thing/lib/fm/mixins.rb
r188 r196 181 181 end 182 182 183 end # module TypeCheckFunctions183 end # module ArgCheckFunctions 184 184 185 185 … … 503 503 @debugLevel = value 504 504 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 ] 506 508 end 507 509 end … … 729 731 # Define the mutator 730 732 define_method( "#{sym}=".intern ) {|arg| 731 FaerieMUD:: TypeCheckFunctions::checkType( arg, *types )733 FaerieMUD::ArgCheckFunctions::checkType( arg, *types ) 732 734 @mutex = Sync::new unless defined? @mutex 733 735 @mutex.synchronize( Sync::EX ) { … … 929 931 ### <div> (if +inline+ is +false+) or a <span>. 930 932 def arrayElement( object, inline=false ) 931 TypeCheckFunctions::checkType( object, ::Array )933 FaerieMUD::ArgCheckFunctions::checkType( object, ::Array ) 932 934 func = inline ? method(:span) : method(:div) 933 935 … … 949 951 ### either a <div> (if +inline+ is +false+) or a <span>. 950 952 def hashElement( object, inline=false ) 951 TypeCheckFunctions::checkType( object, ::Hash )953 FaerieMUD::ArgCheckFunctions::checkType( object, ::Hash ) 952 954 func = inline ? method(:span) : method(:div) 953 955
