diff options
author | Stan Lo <stan001212@gmail.com> | 2024-02-01 17:45:54 +0000 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-02-01 17:46:02 +0000 |
commit | ef427123ad51269fd5b45eeba327bd626e420974 (patch) | |
tree | 393996181892a58f96db08e3cc73e34b3325e0c7 /lib/irb/inspector.rb | |
parent | 494778c66340be109f4d3bc4e51e57da967e7027 (diff) |
[ruby/irb] Add rubocop with a few basic styling rules
(https://github.com/ruby/irb/pull/849)
* Use rubocop to enforce a few styling rules
* Add a CI job for linting
https://github.com/ruby/irb/commit/4f60cd88bb
Diffstat (limited to 'lib/irb/inspector.rb')
-rw-r--r-- | lib/irb/inspector.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/inspector.rb b/lib/irb/inspector.rb index ee3b19efdc..7bdd855b9a 100644 --- a/lib/irb/inspector.rb +++ b/lib/irb/inspector.rb @@ -46,7 +46,7 @@ module IRB # :nodoc: # Determines the inspector to use where +inspector+ is one of the keys passed # during inspector definition. def self.keys_with_inspector(inspector) - INSPECTORS.select{|k,v| v == inspector}.collect{|k, v| k} + INSPECTORS.select{|k, v| v == inspector}.collect{|k, v| k} end # Example |