提交 caab9f4e 编写于 作者: V Vijay Dev

document meta methods

上级 a715c372
......@@ -137,14 +137,14 @@ def to_yaml(*args)
UNSAFE_STRING_METHODS.each do |unsafe_method|
class_eval <<-EOT, __FILE__, __LINE__
def #{unsafe_method}(*args, &block)
to_str.#{unsafe_method}(*args, &block)
end
def #{unsafe_method}!(*args)
@dirty = true
super
end
def #{unsafe_method}(*args, &block) # def gsub(*args, &block)
to_str.#{unsafe_method}(*args, &block) # to_str.gsub(*args, &block)
end # end
def #{unsafe_method}!(*args) # def gsub!(*args)
@dirty = true # @dirty = true
super # super
end # end
EOT
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册