<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Determine OS with ruby</title>
	<link>http://bka-bonn.de/wordpress/index.php/2009/06/01/determine-os-with-ruby/</link>
	<description>This is C++, we all have our segfaults.</description>
	<pubDate>Tue, 07 Feb 2012 17:18:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Anon</title>
		<link>http://bka-bonn.de/wordpress/index.php/2009/06/01/determine-os-with-ruby/#comment-88</link>
		<dc:creator>Anon</dc:creator>
		<pubDate>Sat, 25 Jul 2009 02:04:02 +0000</pubDate>
		<guid>http://bka-bonn.de/wordpress/index.php/2009/06/01/determine-os-with-ruby/#comment-88</guid>
		<description>Well, sys/uname is written in C and therefore isn't running on JRuby. The following works on Ruby 1.8, 1.9 and JRuby 1.2 and 1.3 at least:

require 'rbconfig'
puts RbConfig::CONFIG['target_os']
=&#62; "linux"

On Windows XP it returns "mswin32"</description>
		<content:encoded><![CDATA[<p>Well, sys/uname is written in C and therefore isn&#8217;t running on JRuby. The following works on Ruby 1.8, 1.9 and JRuby 1.2 and 1.3 at least:</p>
<p>require &#8216;rbconfig&#8217;<br />
puts RbConfig::CONFIG[&#8217;target_os&#8217;]<br />
=&gt; &#8220;linux&#8221;</p>
<p>On Windows XP it returns &#8220;mswin32&#8243;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

