Permalink
Browse files

bugfix

  • Loading branch information...
1 parent 62b24d6 commit 0ed2799b40e1ecbe66ea78b10478a8615f099ff9 @betapi betapi committed Mar 15, 2012
Showing with 4 additions and 6 deletions.
  1. +4 −6 lib/zanox.rb
View
@@ -122,12 +122,10 @@ def initialize (hash)
hash
end
- class << self
- def method_missing method, *params, &block
- class << nil
- def method_mising method, *params, &block
- self
- end
+ define_singleton_method("method_missing") do |method, *params|
+ class << nil
+ def method_missing method, *params, &block
+ self
end
end
end

0 comments on commit 0ed2799

Please sign in to comment.