Skip to content

Commit

Permalink
Remove remaining frozen_string_literal: false in lib/ (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng authored Feb 23, 2024
1 parent 83d9055 commit 4bfdb23
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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 4bfdb23

Please sign in to comment.