Changeset 1255

Show
Ignore:
Timestamp:
01/09/08 21:03:01 (9 months ago)
Author:
e.@brainspl.at
Message:

Hash#method_missing by by

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/merb/core_ext/hash.rb

    r1196 r1255  
    183183    end 
    184184    self 
    185   end 
    186    
    187   def method_missing(method, *args) #:nodoc: 
    188     if method.to_s =~ /=$/ 
    189       self[$`] = args[0] 
    190     elsif args.empty? 
    191       self[method] 
    192     else 
    193       raise NoMethodError, method.to_s 
    194     end 
    195185  end 
    196186