14 Jun '12, 2am

Difference between alias and alias_method - Ruby Forum:

On Dec 17, 11:12 pm, "jwmerr...@gmail.com" <jwmerr...@gmail.com> wrote: > Don't know exactly why, but wrapping alias in a class_eval seems to > fix the problem: > > class_eval("alias old_initialize initialize") > > Using ri, I couldn't even find who exactly alias belongs to (i.e. is > it defined in Kernel, Object, Module, or what, and is it a class > method of one of these?) Hopefully someone else can weigh in and > clear this up. This is because "alias" is not a method - it's a keyword (that trips me up every time I put a comma between the old and new method name, and the compiler complains). You can use "alias" in two contexts. You normally use it in a class definition to alias an instance method of the class. It's not enough that the class is "self" - you really must be inside the class definition. That's why this works: MyClass.class_eval{ alias :to_string :to_s } whil...

Full article: http://www.ruby-forum.com/topic/135598

Tweets

In case you didn't know it - #rails has a curre...

api.rubyonrails.org 23 Jun '12, 6pm

<%= button_to "New", :action => "new" %> # => "<form method="post" action="/controller/new" class="button_to"> # <div><inp...

Difference between miser and smart spender

thefinance.sg 14 Jun '12, 2pm

One of my favorite blogs is Janny Cole’s “How to be Rich, Happy and Free from Scams”. One unique aspect of her postings is...

Tutoriais para Ruby #14elw

ruby-br.org 18 Jun '12, 7pm

Página Inicial 1. O Básico Sobre este capítulo Ruby Interativo: primeiros passos Strings (texto) Nomes novos para coisas a...

epiceditor-rails (0.1.0): This gem provides Epi...

rubygems.org 15 Jun '12, 12am

This gem provides EpicEditor driver for your Rails 3 application (using assets)

Learning Ruby and Rails:

everydayrails.com 18 Jun '12, 3am

I live in a town dominated by Python, PHP , and Java developers, so hiring someone who can come in and write Ruby code fro...

Jay Fields' Thoughts: Ruby: Class Methods:

Jay Fields' Thoughts: Ruby: Class Methods:

blog.jayfields.com 17 Jun '12, 5am

The real stumbling block is that Java class methods are totally different things from Ruby "class" methods, so different t...

Arrays de forma simples #14elw

ruby-br.org 18 Jun '12, 8pm

Você já está familiarizado com um casal de classes Ruby (Integer e String ). A classe Array é usada para representar uma c...

Ruby and Rails in Mac OS X Leopard:

rubyinside.com 15 Jun '12, 8am

Someone / some people who have been responsible for integrating Ruby and Rails into the latest version of Mac OS X (Leopar...

I wrote new Ruby client for Zemanta API. Use it...

rubygems.org 12 Jun '12, 1pm

zemanta 0.0.1 Ruby client for Zemanta install gem install zemanta Download Documentation Subscribe Stats Authors Oto Brgle...

Veja como é simples fazer laços com Ruby #14elw

Veja como é simples fazer laços com Ruby #14elw

ruby-br.org 18 Jun '12, 8pm

Agora você será introduzido em um dos mais importantes aspectos das linguagens de programação: laços (loops). Usando seu e...