<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Beyond Syntax &#187; Uncategorized</title>
	<atom:link href="http://www.beyond-syntax.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.beyond-syntax.com</link>
	<description>Looking beyond syntactical meaning</description>
	<lastBuildDate>Thu, 01 Jul 2010 22:45:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>rubygems requirement syntax for config.gem :version</title>
		<link>http://www.beyond-syntax.com/2009/05/rubygems-requirement-syntax-for-configgem-version/</link>
		<comments>http://www.beyond-syntax.com/2009/05/rubygems-requirement-syntax-for-configgem-version/#comments</comments>
		<pubDate>Mon, 11 May 2009 18:44:55 +0000</pubDate>
		<dc:creator>phinze</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ruby rails rubygems]]></category>

		<guid isPermaLink="false">http://www.beyond-syntax.com/?p=73</guid>
		<description><![CDATA[This shouldn&#8217;t have been as difficult to find as it was, so I figured I&#8217;d better throw it somewhere.

  OPS = &#123;
    &#34;=&#34;  =&#62;  lambda &#123; &#124;v, r&#124; v == r &#125;,
    &#34;!=&#34; =&#62;  lambda &#123; &#124;v, r&#124; v != r &#125;,
    [...]]]></description>
			<content:encoded><![CDATA[<p>This shouldn&#8217;t have been as difficult to find as it was, so I figured I&#8217;d better throw it somewhere.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">  OPS = <span style="color:#006600; font-weight:bold;">&#123;</span>
    <span style="color:#996600;">&quot;=&quot;</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span>  <span style="color:#CC0066; font-weight:bold;">lambda</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>v, r<span style="color:#006600; font-weight:bold;">|</span> v == r <span style="color:#006600; font-weight:bold;">&#125;</span>,
    <span style="color:#996600;">&quot;!=&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span>  <span style="color:#CC0066; font-weight:bold;">lambda</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>v, r<span style="color:#006600; font-weight:bold;">|</span> v != r <span style="color:#006600; font-weight:bold;">&#125;</span>,
    <span style="color:#996600;">&quot;&gt;&quot;</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span>  <span style="color:#CC0066; font-weight:bold;">lambda</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>v, r<span style="color:#006600; font-weight:bold;">|</span> v <span style="color:#006600; font-weight:bold;">&gt;</span> r <span style="color:#006600; font-weight:bold;">&#125;</span>,
    <span style="color:#996600;">&quot;&lt;&quot;</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span>  <span style="color:#CC0066; font-weight:bold;">lambda</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>v, r<span style="color:#006600; font-weight:bold;">|</span> v <span style="color:#006600; font-weight:bold;">&lt;</span> r <span style="color:#006600; font-weight:bold;">&#125;</span>,
    <span style="color:#996600;">&quot;&gt;=&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span>  <span style="color:#CC0066; font-weight:bold;">lambda</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>v, r<span style="color:#006600; font-weight:bold;">|</span> v <span style="color:#006600; font-weight:bold;">&gt;</span>= r <span style="color:#006600; font-weight:bold;">&#125;</span>,
    <span style="color:#996600;">&quot;&lt;=&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span>  <span style="color:#CC0066; font-weight:bold;">lambda</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>v, r<span style="color:#006600; font-weight:bold;">|</span> v <span style="color:#006600; font-weight:bold;">&lt;</span>= r <span style="color:#006600; font-weight:bold;">&#125;</span>,
    <span style="color:#996600;">&quot;~&gt;&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span>  <span style="color:#CC0066; font-weight:bold;">lambda</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>v, r<span style="color:#006600; font-weight:bold;">|</span> v = v.<span style="color:#9900CC;">release</span>; v <span style="color:#006600; font-weight:bold;">&gt;</span>= r <span style="color:#006600; font-weight:bold;">&amp;&amp;</span> v <span style="color:#006600; font-weight:bold;">&lt;</span> r.<span style="color:#9900CC;">bump</span> <span style="color:#006600; font-weight:bold;">&#125;</span>
  <span style="color:#006600; font-weight:bold;">&#125;</span></pre></div></div>

<p>Found deep in the <a href="http://rubygems.rubyforge.org/svn/trunk/lib/rubygems/requirement.rb">rubygems source</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.beyond-syntax.com/2009/05/rubygems-requirement-syntax-for-configgem-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
