05 May '13, 9pm

Include vs Extend in Ruby

Now that we know the difference between an instance method and a class method , let’s cover the difference between include and extend in regards to modules. Include is for adding methods to an instance of a class and extend is for adding class methods. Let’s take a look at a small example. module Foo def foo puts 'heyyyyoooo!' end end class Bar include Foo end Bar.new.foo # heyyyyoooo! Bar.foo # NoMethodError: undefined method ‘foo’ for Bar:Class class Baz extend Foo end Baz.foo # heyyyyoooo! Baz.new.foo # NoMethodError: undefined method ‘foo’ for #<Baz:0x1e708> As you can see, include makes the foo method available to an instance of a class and extend makes the foo method available to the class itself. Include Example If you want to see more examples of using include to share methods among models, you can read my article on how I added simple permissions to an app. The pe...

Full article: http://www.railstips.org/blog/archives/2009/05/15/include...

Tweets

I'm watching a League of Their own and reading:...

humblelittlerubybook.com 05 May '13, 10pm

Mr. Neighborly's Humble Little Ruby Book covers the Ruby language from the very basics of using puts to put naughty phrase...

Use Roar’s New Decorator If You Dislike Extend!

rubyflow.com 04 May '13, 9am

Use Roar’s New Decorator If You Dislike Extend! Posted by apotonick on May 04, 2013 — 0 comments Roar and Representable go...

What many don’t know: is a Ruby on Rails app. C...

openstreetmap.org 09 May '13, 11pm

OpenStreetMap is a free worldwide map, created by people like you. The data is free to download and use under its open lic...

Il linguaggio di programmazione Ruby

ruby-lang.org 04 May '13, 10am

Ruby è... Un linguaggio open-source dinamico che dà particolare rilevanza alla semplicità e alla produttività, dotato di u...

Big news for green homes: Colorado to include H...

resnet.us 05 May '13, 3pm

Summit County, Colorado’s Summit Daily reported that the Colorado Energy Office is working with local Colorado Multiple Li...

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

afreshcup.com 06 May '13, 1pm

is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the univer...

We are hiring! We're looking for a Ruby on Rail...

neotericdesign.com 08 May '13, 5pm

Neoteric Design seeks a full time, on location Ruby on Rails web developer. The Ruby on Rails developer is responsible for...

Традиционный @whitequark в Ruby Weekly с gem pa...

rubyweekly.com 02 May '13, 10am

Many Rubyists will currently be at RailsConf 2013. If you are, I hope you're having a great time! This newsletter, however...

Tutorial: iOS (iPhone) app using Rubymotion with a Ruby on Rails API backend

Tutorial: iOS (iPhone) app using Rubymotion wit...

lucatironi.github.io 08 May '13, 4am

Before we can start, we have to change the SessionsController.rb in the Ruby on Rails application in order to remove the s...

“Ruby 1.9.3-p426 リリース”

ruby-lang.org 14 May '13, 2pm

Ruby 1.9.3-p426 がリリースされました。 今回のリリースには、バンドルされている DL / Fiddle に関するセキュリティフィックスが含まれます。 DL および Fiddle におけるオブジェクト汚染フラグバイパス (CVE-...

Online Ruby on Rails Programming Course

Online Ruby on Rails Programming Course

pragprog.com 08 May '13, 2pm

In this comprehensive online course you’ll learn the fundamentals every Rails developer should know, and how to put all th...

link: Ruby 1.9.3-p429 リリース -

ruby-lang.org 14 May '13, 9pm

ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p429.tar.bz2 SIZE: 10042323 bytes MD5: c2b2de5ef15ea9b1aaa3152f9112af1b SH...

This weeks Ruby Weekly newsletter is full of go...

rubyweekly.com 09 May '13, 11am

Phusion Passenger 4.0.1 Released So reassured of its quality, the Phusion crew decided to leap straight to a more trustwor...

Hoy hay taller de Introducción a Ruby on Rails ...

lacatedralonline.es 08 May '13, 8am

Aprende a usar Ruby on Rails para tus propios proyectos. En el curso aprenderemos qué es RoR, los principios básico de MVC...