Permalink
Browse files

FFI::Platform.mac?, FFI::Platform.unix?

  • Loading branch information...
1 parent b145e4a commit d160bdb05bd7bb4147ae675d7a7017ddd7758d4a @DanielVartanov committed Dec 9, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 kernel/platform/ffi.rb
@@ -250,4 +250,11 @@ def self.windows?
Rubinius.windows?
end
+ def self.mac?
+ Rubinius.darwin?
+ end
+
+ def self.unix?
+ ! windows?
+ end
end

0 comments on commit d160bdb

Please sign in to comment.