master/spec/support/platform_helper.rb
2011-06-16 18:14:51 +07:00

12 lines
186 B
Ruby

def mac?
RbConfig::CONFIG['target_os'] =~ /darwin/i
end
def linux?
RbConfig::CONFIG['target_os'] =~ /linux/i
end
def windows?
RbConfig::CONFIG['target_os'] =~ /mswin|mingw/i
end