Skip to content

Commit 4bfdb23

Browse files
authored
Remove remaining frozen_string_literal: false in lib/ (#883)
1 parent 83d9055 commit 4bfdb23

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/irb.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# frozen_string_literal: false
1+
# frozen_string_literal: true
22
#
33
# irb.rb - irb main module
44
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
@@ -903,8 +903,8 @@ class Irb
903903
# parsed as a :method_add_arg and the output won't be suppressed
904904

905905
PROMPT_MAIN_TRUNCATE_LENGTH = 32
906-
PROMPT_MAIN_TRUNCATE_OMISSION = '...'.freeze
907-
CONTROL_CHARACTERS_PATTERN = "\x00-\x1F".freeze
906+
PROMPT_MAIN_TRUNCATE_OMISSION = '...'
907+
CONTROL_CHARACTERS_PATTERN = "\x00-\x1F"
908908

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

10581058
# nomultiline
1059-
code = ''
1059+
code = +''
10601060
line_offset = 0
10611061
loop do
10621062
line = read_input(prompt)

lib/irb/inspector.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# frozen_string_literal: false
1+
# frozen_string_literal: true
22
#
33
# irb/inspector.rb - inspect methods
44
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
@@ -113,7 +113,7 @@ def inspect_value(v)
113113
Color.colorize_code(v.inspect, colorable: Color.colorable? && Color.inspect_colorable?(v))
114114
}
115115
Inspector.def_inspector([true, :pp, :pretty_inspect], proc{require_relative "color_printer"}){|v|
116-
IRB::ColorPrinter.pp(v, '').chomp
116+
IRB::ColorPrinter.pp(v, +'').chomp
117117
}
118118
Inspector.def_inspector([:yaml, :YAML], proc{require "yaml"}){|v|
119119
begin

0 commit comments

Comments
 (0)