From b6ffa1ba4363f962e11d1b0f24128e52a1d20fa9 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Fri, 20 Mar 2015 14:38:25 +0100 Subject: [PATCH] Added method for cygwin support --- lib/execjs/module.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/execjs/module.rb b/lib/execjs/module.rb index 6d155af..8b2566a 100644 --- a/lib/execjs/module.rb +++ b/lib/execjs/module.rb @@ -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