<?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>Bicosyes - since evermore... &#187; irb</title>
	<atom:link href="http://bicosyes.com/tag/irb/feed/" rel="self" type="application/rss+xml" />
	<link>http://bicosyes.com</link>
	<description></description>
	<lastBuildDate>Sat, 06 Mar 2010 20:03:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Autocompletado e historial de métodos en la consola de ruby (irb)</title>
		<link>http://bicosyes.com/autocompletado-e-historial-de-metodos-en-la-consola-de-ruby-irb/</link>
		<comments>http://bicosyes.com/autocompletado-e-historial-de-metodos-en-la-consola-de-ruby-irb/#comments</comments>
		<pubDate>Fri, 16 May 2008 14:16:14 +0000</pubDate>
		<dc:creator>blaxter</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[irb]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://bicosyes.com/autocompletado-e-historial-de-metodos-en-la-consola-de-ruby-irb/</guid>
		<description><![CDATA[Hoy le toca el turno a ruby. La consola de ruby, irb, tiene bastantes opciones de configuración, permitiendo, entre otras cosas, el autocompletado de métodos e incluso guardar un historial de comandos entre sesiones. Muy simple, simplemente añade esto a &#8230; <a href="http://bicosyes.com/autocompletado-e-historial-de-metodos-en-la-consola-de-ruby-irb/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hoy le toca el turno a <strong>ruby</strong>. La consola de ruby, <strong>irb</strong>, tiene <a href="http://www.rubycentral.com/pickaxe/irb.html">bastantes opciones</a> de configuración, permitiendo, entre otras cosas, el autocompletado de métodos e incluso guardar un historial de comandos entre sesiones. </p>
<p>Muy simple, simplemente añade esto a tu fichero ~/.irbrc (si no existe, lo creas):</p>
<pre class="ruby">equire <span style="color:#996600;">'irb/completion'</span>
&nbsp;
IRB.<span style="color:#9900CC;">conf</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:SAVE_HISTORY</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#006666;">1000</span>
IRB.<span style="color:#9900CC;">conf</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:HISTORY_FILE</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#996600;">&quot;#{ENV['HOME']}/.irb-save-history&quot;</span>
IRB.<span style="color:#9900CC;">conf</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:AUTO_INDENT</span><span style="color:#006600; font-weight:bold;">&#93;</span>  = <span style="color:#0000FF; font-weight:bold;">true</span>
IRB.<span style="color:#9900CC;">conf</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:PROMPT_MODE</span><span style="color:#006600; font-weight:bold;">&#93;</span>  = <span style="color:#ff3333; font-weight:bold;">:SIMPLE</span></pre>
<p>Puedes añadir otras opciones, e incluso personalizar el <em>prompt</em> el cual lo tengo a '<em>simple</em>' porque los otros modos son demasiado informativos para mi gusto (nunca he entendido esa manía de querer incorporar siempre el número de comando en todas las consolas de los lenguajes).</p>
<img src="http://bicosyes.com/?ak_action=api_record_view&id=631&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://bicosyes.com/autocompletado-e-historial-de-metodos-en-la-consola-de-ruby-irb/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

