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:
parent
6cb38c1fab
commit
b6ffa1ba43
1 changed files with 4 additions and 0 deletions
|
@ -34,5 +34,9 @@ module ExecJS
|
|||
def windows?
|
||||
@windows ||= RbConfig::CONFIG["host_os"] =~ /mswin|mingw/
|
||||
end
|
||||
|
||||
def cygwin?
|
||||
@cygwin ||= RbConfig::CONFIG["host_os"] =~ /cygwin/
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue