10 Jun '12, 5pm

@polotek @rwaldron @timw4mail Ruby uses # to denote *not define* instance (inherited) methods vs static (class) methods

The other day I was explaining the difference between class and instance methods to a friend and I realized that I should probably write up a post. I figured since I’m on a plane headed back home, now was as good of time as ever. If you want a little history, you can read about the difference between class and instance variables . One Line Summary Class methods are methods that are called on a class and instance methods are methods that are called on an instance of a class. Here is a quick example and then we’ll go into a bit more detail. class Foo def self.bar puts 'class method' end def baz puts 'instance method' end end Foo.bar # => "class method" Foo.baz # => NoMethodError: undefined method ‘baz’ for Foo:Class Foo.new.baz # => instance method Foo.new.bar # => NoMethodError: undefined method ‘bar’ for #<Foo:0x1e820> See the difference? bar is a class method , so calling...

Full article: http://railstips.org/blog/archives/2009/05/11/class-and-i...

Tweets

@SerafinaTalks Class material class rules class...

kenlyen.com 10 Jun '12, 4pm

You can find everthing on the internet. Even the entire undergraduate medical course? Almost! There's sure a lot of stuff ...

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...

#rails have some interesting methods some times.

apidock.com 20 Jun '12, 9am

i_suck_and_my_tests_are_order_dependent! () public Call this at the top of your tests when you absolutely positively need ...

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...

rbenv: A Simple, New Ruby Version Management Tool

rbenv: A Simple, New Ruby Version Management Tool

rubyinside.com 10 Jun '12, 3pm

"at least recognizing that Wayne did his damnedest to solve this problem the best he could figure how, and thus word his c...

Top Ruby Article: What's New in Edge Rails #24:

afreshcup.com 11 Jun '12, 11am

Monday, June 11, 2012 at 6:10AM Week of June 4 -June 10, 2012 Not a very busy week. The work merged at b4fb80cb starts red...

@BingChen getting several messages about view b...

blackhatworld.com 10 Jun '12, 12am

So, the people who know about this method were kind of smart, and though: “Hey if it shows up as mobile, and can easily be...

I just used a piece of code @josh_cheek wrote l...

ruby-forum.com 12 Jun '12, 12am

On Aug 19, 2011, at 12:27 PM, Yu Yu wrote: > end > end > end I'm not sure what different action you plan to take if there ...

It's time! The new GoGaRuCo 2012 site is up, re...

gogaruco.com 13 Jun '12, 9pm

San Francisco is the birthplace of the web revolution. Ruby powers many new technologies, from web sites to telephony and ...

Swedish cooking class by IKEA - who's interested??

rebeccasaw.com 09 Jun '12, 10am

IKEA Pretty Smart Kitchen Contest – Win a session of SwedeCook Class on 1st July! The Curious Cat – The Cat with a rib-tic...

ステータスコード422のいい話し(この挙動って今も変わってないんだっけ / “第2回 新規アプ...

oiax.jp 12 Jun '12, 6am

Rails 2.0 がインストールできましたので、早速、新規アプリケーションを作ってみましょう。 > rails sample コンソールに次のように表示されて、アプリケーションが作成されました。 create create app/contr...

Passing Arguments to before_filter - Ruby Forum:

ruby-forum.com 08 Jun '12, 2am

Hi -- On 3/20/07, s.ross <[email protected]> wrote: > end > end > > Where I'm blocking is on how to get the 'options' data...

Class rallies around autistic student

Class rallies around autistic student

army.mil 15 Jun '12, 1pm

FORT JACKSON, S.C. (June 14, 2012) -- When Staff Sgt. Chad Miles, his wife, Chazia, and their four children moved from For...