diff options
author | tomoya ishida <tomoyapenguin@gmail.com> | 2024-02-23 21:32:47 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-02-23 12:32:50 +0000 |
commit | 598b03648f3277d65ab12a8cfb63222474788037 (patch) | |
tree | 5403eca5e89ac2e7e5bca5b550b4d8f5ae7a2c8f | |
parent | 41c0fb699139f82c92414638a7b31565d9841f1c (diff) |
[ruby/irb] Remove remaining `frozen_string_literal: false` in lib/
(https://github.com/ruby/irb/pull/883)
https://github.com/ruby/irb/commit/4bfdb23ae6
-rw-r--r-- | lib/irb.rb | 8 | ||||
-rw-r--r-- | lib/irb/inspector.rb | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/irb.rb b/lib/irb.rb index 09ea9256cb..f5a7d24da7 100644 --- a/lib/irb.rb +++ b/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) @@ -903,8 +903,8 @@ module 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 @@ -1056,7 +1056,7 @@ module IRB return read_input(prompt) if @context.io.respond_to?(:check_termination) # nomultiline - code = '' + code = +'' line_offset = 0 loop do line = read_input(prompt) diff --git a/lib/irb/inspector.rb b/lib/irb/inspector.rb index 7bdd855b9a..667087ccba 100644 --- a/lib/irb/inspector.rb +++ b/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) @@ -113,7 +113,7 @@ module IRB # :nodoc: 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 |