2010-10-17 19:42:40 +00:00
|
|
|
def mac?
|
2011-06-16 11:14:51 +00:00
|
|
|
RbConfig::CONFIG['target_os'] =~ /darwin/i
|
2010-10-17 19:42:40 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def linux?
|
2011-06-16 11:14:51 +00:00
|
|
|
RbConfig::CONFIG['target_os'] =~ /linux/i
|
2011-04-30 10:38:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def windows?
|
2011-06-16 11:14:51 +00:00
|
|
|
RbConfig::CONFIG['target_os'] =~ /mswin|mingw/i
|
|
|
|
end
|