提交 7391f772 编写于 作者: J Jeremy Kemper

Ruby 1.8.7 compat: work around broken DelegateClass#respond_to?

上级 3a977507
......@@ -78,6 +78,12 @@ def to_s
buf
end
# FIXME: work around broken 1.8.7 DelegateClass#respond_to?
def respond_to?(method, include_private = false)
return true if super(method)
return __getobj__.respond_to?(method, include_private)
end
# Parses a raw cookie string into a hash of <tt>cookie-name => cookie-object</tt>
# pairs.
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册