document meta methods

This commit is contained in:
Vijay Dev
2011-07-03 18:15:47 +05:30
parent a715c37218
commit caab9f4e95

View File

@@ -137,14 +137,14 @@ module ActiveSupport #:nodoc:
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, &block) # def gsub(*args, &block)
to_str.#{unsafe_method}(*args, &block) # to_str.gsub(*args, &block)
end # end
def #{unsafe_method}!(*args)
@dirty = true
super
end
def #{unsafe_method}!(*args) # def gsub!(*args)
@dirty = true # @dirty = true
super # super
end # end
EOT
end