Method pointer
s = "sample string" replacements = { "a" => "i", "tring" => "ubstitution" } replacements.collect(&s.method("gsub")) # => ["simple string", "sample substitution"]