Skip to content

Commit

Permalink
[ruby/irb] Remove remaining frozen_string_literal: false in lib/
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng authored and matzbot committed Feb 23, 2024
1 parent 41c0fb6 commit 598b036
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/irb.rb
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
#
# irb.rb - irb main module
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
Expand Down Expand Up @@ -903,8 +903,8 @@ class Irb
# parsed as a :method_add_arg and the output won't be suppressed

PROMPT_MAIN_TRUNCATE_LENGTH = 32
PROMPT_MAIN_TRUNCATE_OMISSION = '...'.freeze
CONTROL_CHARACTERS_PATTERN = "\x00-\x1F".freeze
PROMPT_MAIN_TRUNCATE_OMISSION = '...'
CONTROL_CHARACTERS_PATTERN = "\x00-\x1F"

# Returns the current context of this irb session
attr_reader :context
Expand Down Expand Up @@ -1056,7 +1056,7 @@ def readmultiline
return read_input(prompt) if @context.io.respond_to?(:check_termination)

# nomultiline
code = ''
code = +''
line_offset = 0
loop do
line = read_input(prompt)
Expand Down
4 changes: 2 additions & 2 deletions lib/irb/inspector.rb
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
#
# irb/inspector.rb - inspect methods
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
Expand Down Expand Up @@ -113,7 +113,7 @@ def inspect_value(v)
Color.colorize_code(v.inspect, colorable: Color.colorable? && Color.inspect_colorable?(v))
}
Inspector.def_inspector([true, :pp, :pretty_inspect], proc{require_relative "color_printer"}){|v|
IRB::ColorPrinter.pp(v, '').chomp
IRB::ColorPrinter.pp(v, +'').chomp
}
Inspector.def_inspector([:yaml, :YAML], proc{require "yaml"}){|v|
begin
Expand Down

0 comments on commit 598b036

Please sign in to comment.