diff options
author | 0xAB <0xAB@protonmail.com> | 2017-09-02 11:58:04 +0100 |
---|---|---|
committer | 0xAB <0xAB@protonmail.com> | 2017-09-02 11:58:04 +0100 |
commit | ad0f5714cfc6a4654f4717f82f9aebfc384366b0 (patch) | |
tree | a2a2dd198916eb03c92efcbff93c690f8b84dbc9 | |
parent | a841c9d9614622a4a0676ed4b3852113c62d0e85 (diff) | |
download | pry-ad0f5714cfc6a4654f4717f82f9aebfc384366b0.tar.gz |
JRuby <3
-rw-r--r-- | lib/pry/helpers/text.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pry/helpers/text.rb b/lib/pry/helpers/text.rb index 5d30c844..d4b9fc13 100644 --- a/lib/pry/helpers/text.rb +++ b/lib/pry/helpers/text.rb @@ -56,6 +56,9 @@ class Pry end # + # @note + # On JRuby, this method can be slow due to the slow boot times of JRuby. + # # @param [String] char # A string consisting of a single character. Other characters are ignored. # @@ -71,7 +74,7 @@ class Pry SNOWMAN == stdout.gets.chomp end end - DISPLAY_CMD = %Q("%{ruby}" -e 'print "%{char}"') + DISPLAY_CMD = %q("%{ruby}" -e 'print "%{char}"').freeze SNOWMAN = "☃".freeze private_constant :DISPLAY_CMD, :SNOWMAN |