1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Clean up ambiguous method warnings

When running with Ruby warnings, these usages of `#match` are ambiguous,
but can be made explicit with parens.
This commit is contained in:
Steven Harman 2014-06-24 16:07:30 -04:00
parent c9dc06fa39
commit e48ed7c6bc
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
class Pry
class Command::Bang < Pry::ClassCommand
match /^\s*!\s*$/
match(/^\s*!\s*$/)
group 'Editing'
description 'Clear the input buffer.'
command_options :use_prefix => false

View file

@ -711,7 +711,7 @@ describe "Pry::Command" do
it "equals to :match option's inspect, if :match is Regexp" do
class CoolWinter < Pry::ClassCommand
match /.*winter/
match(/.*winter/)
description 'Is winter cool or cool?'
end
Pry.config.commands.add_command CoolWinter