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:
parent
c9dc06fa39
commit
e48ed7c6bc
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
class Pry
|
class Pry
|
||||||
class Command::Bang < Pry::ClassCommand
|
class Command::Bang < Pry::ClassCommand
|
||||||
match /^\s*!\s*$/
|
match(/^\s*!\s*$/)
|
||||||
group 'Editing'
|
group 'Editing'
|
||||||
description 'Clear the input buffer.'
|
description 'Clear the input buffer.'
|
||||||
command_options :use_prefix => false
|
command_options :use_prefix => false
|
||||||
|
|
|
@ -711,7 +711,7 @@ describe "Pry::Command" do
|
||||||
|
|
||||||
it "equals to :match option's inspect, if :match is Regexp" do
|
it "equals to :match option's inspect, if :match is Regexp" do
|
||||||
class CoolWinter < Pry::ClassCommand
|
class CoolWinter < Pry::ClassCommand
|
||||||
match /.*winter/
|
match(/.*winter/)
|
||||||
description 'Is winter cool or cool?'
|
description 'Is winter cool or cool?'
|
||||||
end
|
end
|
||||||
Pry.config.commands.add_command CoolWinter
|
Pry.config.commands.add_command CoolWinter
|
||||||
|
|
Loading…
Reference in a new issue