Merge pull request #200 from koic/remove_redundant_string_dup
Remove redundant `String#dup`
This commit is contained in:
commit
0b70ef3d6a
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ module MCP
|
|||
end
|
||||
|
||||
def underscore(camel_cased_word)
|
||||
camel_cased_word.dup
|
||||
camel_cased_word
|
||||
.gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
|
||||
.gsub(/([a-z\d])([A-Z])/, '\1_\2')
|
||||
.tr("-", "_")
|
||||
|
|
|
|||
Loading…
Reference in a new issue