1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

Added method for cygwin support

This commit is contained in:
Benjamin 2015-03-20 14:38:25 +01:00
parent 6cb38c1fab
commit b6ffa1ba43

View file

@ -34,5 +34,9 @@ module ExecJS
def windows? def windows?
@windows ||= RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ @windows ||= RbConfig::CONFIG["host_os"] =~ /mswin|mingw/
end end
def cygwin?
@cygwin ||= RbConfig::CONFIG["host_os"] =~ /cygwin/
end
end end
end end