summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYuta Kusuno <56626111+yutakusuno@users.noreply.github.com>2023-06-20 07:02:46 -0700
committergit <svn-admin@ruby-lang.org>2023-06-20 14:02:58 +0000
commit9ce6e096370b150de4aa9e426726e1cc06f725b8 (patch)
treeae66335c30ac6150b2a1e6cb4f0a8c7e4d20132c /lib
parent932dd9f10e684fa99b059054fbc934607d85b45a (diff)
[ruby/reline] Omit constant under Struct
(https://github.com/ruby/reline/pull/554) https://github.com/ruby/reline/commit/8761a11fa5
Diffstat (limited to 'lib')
-rw-r--r--lib/reline.rb2
-rw-r--r--lib/reline/line_editor.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/reline.rb b/lib/reline.rb
index fd70ffc9d0..ae98224653 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -17,7 +17,7 @@ module Reline
class ConfigEncodingConversionError < StandardError; end
- Key = Struct.new('Key', :char, :combined_char, :with_meta) do
+ Key = Struct.new(:char, :combined_char, :with_meta) do
def match?(other)
case other
when Reline::Key
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index e8b83e2a6e..36375eee81 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -48,8 +48,8 @@ class Reline::LineEditor
PERFECT_MATCH = :perfect_match
end
- CompletionJourneyData = Struct.new('CompletionJourneyData', :preposing, :postposing, :list, :pointer)
- MenuInfo = Struct.new('MenuInfo', :target, :list)
+ CompletionJourneyData = Struct.new(:preposing, :postposing, :list, :pointer)
+ MenuInfo = Struct.new(:target, :list)
PROMPT_LIST_CACHE_TIMEOUT = 0.5
MINIMUM_SCROLLBAR_HEIGHT = 1