diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-17 15:08:09 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-17 15:08:09 -0800 |
commit | ae9b20c2f1fa0dd629f0da2b81435db5582ba367 (patch) | |
tree | 945bcb004f96ff229c7d5b196c6ace71caff9cf4 /lib/ffi_yajl/platform.rb | |
parent | 70bd38f4151d2f9d48973d1f4240b0515428e9f9 (diff) | |
download | ffi-yajl-ae9b20c2f1fa0dd629f0da2b81435db5582ba367.tar.gz |
mixin windows? helper directly into the object
its useful to be able to include/extend the platform class and then
use this sugar directly
Diffstat (limited to 'lib/ffi_yajl/platform.rb')
-rw-r--r-- | lib/ffi_yajl/platform.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/ffi_yajl/platform.rb b/lib/ffi_yajl/platform.rb index bde716d..6c2a498 100644 --- a/lib/ffi_yajl/platform.rb +++ b/lib/ffi_yajl/platform.rb @@ -1,5 +1,7 @@ -module Platform - def self.windows? - !!(RUBY_PLATFORM =~ /mswin|mingw|cygwin|windows/) +module FFI_Yajl + module Platform + def windows? + !!(RUBY_PLATFORM =~ /mswin|mingw|cygwin|windows/) + end end -end
\ No newline at end of file +end |