-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove remaining
frozen_string_literal: false
in lib/ (#883)
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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([email protected]) | ||
|
@@ -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 | ||
|
@@ -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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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([email protected]) | ||
|
@@ -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 | ||
|