Browse files

Improve ClosedStruct.

  • Loading branch information...
1 parent b9dea95 commit 8870dde625e850c2b173ed97d30de5d34e8ec61b @henrik henrik committed Apr 16, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jekyll/core_ext.rb
View
2 lib/jekyll/core_ext.rb
@@ -24,6 +24,6 @@ def deep_merge(hash)
require 'ostruct'
class ClosedStruct < OpenStruct
def method_missing(symbol, *args)
- @table.has_key?(symbol) ? super : raise(NoMethodError, "undefined method `#{symbol}' for #{self}")
+ raise(NoMethodError, "undefined method `#{symbol}' for #{self}")
end
end

0 comments on commit 8870dde

Please sign in to comment.