Sha256: 95d6b267f3583f629971e5b1b9a5899cf195d300834c938a921c190865452689

Contents?: true

Size: 838 Bytes

Versions: 67

Compression:

Stored size: 838 Bytes

Contents

# Copyright (C) 2016  Kouhei Sutou <kou@clear-code.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

module Grntest
  module Platform
    class << self
      def windows?
        /mswin|mingw|cygwin/ === RUBY_PLATFORM
      end
    end
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
grntest-1.8.0 lib/grntest/platform.rb
grntest-1.7.9 lib/grntest/platform.rb
grntest-1.7.8 lib/grntest/platform.rb
grntest-1.7.7 lib/grntest/platform.rb
grntest-1.7.6 lib/grntest/platform.rb
grntest-1.7.5 lib/grntest/platform.rb
grntest-1.7.4 lib/grntest/platform.rb
grntest-1.7.3 lib/grntest/platform.rb
grntest-1.7.2 lib/grntest/platform.rb
grntest-1.7.1 lib/grntest/platform.rb
grntest-1.7.0 lib/grntest/platform.rb
grntest-1.6.9 lib/grntest/platform.rb
grntest-1.6.8 lib/grntest/platform.rb
grntest-1.6.7 lib/grntest/platform.rb
grntest-1.6.6 lib/grntest/platform.rb
grntest-1.6.5 lib/grntest/platform.rb
grntest-1.6.4 lib/grntest/platform.rb
grntest-1.6.3 lib/grntest/platform.rb
grntest-1.6.2 lib/grntest/platform.rb
grntest-1.6.1 lib/grntest/platform.rb