Skip to content

Commit

Permalink
Fixes for ruby 1.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverPhoenix99 committed Jul 5, 2021
1 parent 33a3dd3 commit 7b7612c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/pry/helpers/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ module Helpers
module Platform
# @return [Boolean]
def self.mac_osx?
/\Adarwin/i.match? RbConfig::CONFIG['host_os']
RbConfig::CONFIG['host_os'] =~ /\Adarwin/i
end

# @return [Boolean]
def self.linux?
/linux/i.match? RbConfig::CONFIG['host_os']
RbConfig::CONFIG['host_os'] =~ /linux/i
end

# @return [Boolean] true when Pry is running on Windows with ANSI support,
# false otherwise
def self.windows?
/mswin|mingw/.match? RbConfig::CONFIG['host_os']
RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
end

# Checks older version of Windows console that required alternative
Expand Down

0 comments on commit 7b7612c

Please sign in to comment.