mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
document meta methods
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user