Public Gists by carlosbrando

Gravatar
Fri Jan 09 12:19:57 -0800 2009
1
2
3
class Object
  def try(method_id, *args, &block)
    respond_to?(method_id) ? send(method_id, *args, &block) : nil
gist: 24491 Silent method
Gravatar
Thu Nov 13 08:47:52 -0800 2008
1
2
3
def silent(command)
  system "#{command} &> /dev/null"
end
Gravatar
Thu Nov 06 17:48:02 -0800 2008
1
2
3
class NilClass
  def to_s
    "n/a"
Gravatar
Thu Oct 16 08:38:20 -0700 2008
1
2
3
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html
 
Olá, Eu sou Chris Wanstrath.
Gravatar
Mon Sep 15 06:56:22 -0700 2008
1
2
3
CmdUtils.CreateCommand({
  name: "viu",
  icon: "http://www.viuisso.com.br/favicon.ico",
Gravatar
Fri Sep 05 05:01:25 -0700 2008
1
2
3
Action Pack
 
* All 2xx requests are considered successful [Josh Peek]
Gravatar
Wed Sep 03 06:39:18 -0700 2008
1
2
3
What's new in Rails 2.0.4
-------------------------
 
Gravatar
Wed Jul 30 12:05:36 -0700 2008
1
render :template => "weblog/show", :locals => {:customer => Customer.new}
Gravatar
Mon Jul 28 11:08:28 -0700 2008
1
2
3
class Post < ActiveRecord::Base
  has_many :comments