Skip to content

Fix RuboCop performance offences#396

Merged
swanson merged 1 commit into
masterfrom
rubocop-performance
Dec 20, 2015
Merged

Fix RuboCop performance offences#396
swanson merged 1 commit into
masterfrom
rubocop-performance

Conversation

@Koronen
Copy link
Copy Markdown
Contributor

@Koronen Koronen commented Dec 19, 2015

  • Fix Performance/StringReplacement

    delete([other_str]+) -> new_str

    Returns a copy of str with all characters in the intersection of its
    arguments deleted. Uses the same rules for building the set of characters as
    String#count.

    See http://ruby-doc.org/core-2.0.0/String.html#method-i-delete.

> ### delete([other_str]+) -> new_str
>
> Returns a copy of *str* with all characters in the intersection of its
> arguments deleted. Uses the same rules for building the set of characters as
> `String#count`.

See <http://ruby-doc.org/core-2.0.0/String.html#method-i-delete>.
@Koronen Koronen mentioned this pull request Dec 19, 2015
5 tasks
@swanson
Copy link
Copy Markdown
Collaborator

swanson commented Dec 20, 2015

Better performance and I think it actually is more clear :) 👍

swanson pushed a commit that referenced this pull request Dec 20, 2015
Fix RuboCop performance offences
@swanson swanson merged commit 01b24de into master Dec 20, 2015
@Koronen Koronen deleted the rubocop-performance branch December 20, 2015 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants