diff options
author | Tyler Vann-Campbell <tyler@buddy.com> | 2015-02-08 13:20:43 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-17 15:10:34 -0800 |
commit | 0561ad9615b5f3f181d790e2db16086aa572b1eb (patch) | |
tree | fea872102598c3ffce7d4ee0c35731bf5a60c231 /lib/ffi_yajl/platform.rb | |
parent | 497cead6e7df8a26ae5b7d66713be68cdc7f2c36 (diff) | |
download | ffi-yajl-0561ad9615b5f3f181d790e2db16086aa572b1eb.tar.gz |
Move #windows? to lib to allow not checking libname to determine platform
Diffstat (limited to 'lib/ffi_yajl/platform.rb')
-rw-r--r-- | lib/ffi_yajl/platform.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ffi_yajl/platform.rb b/lib/ffi_yajl/platform.rb new file mode 100644 index 0000000..bde716d --- /dev/null +++ b/lib/ffi_yajl/platform.rb @@ -0,0 +1,5 @@ +module Platform + def self.windows? + !!(RUBY_PLATFORM =~ /mswin|mingw|cygwin|windows/) + end +end
\ No newline at end of file |