08 Apr '14, 6am

totally confused but must read this again and again | Ruby Classes

totally confused but must read this again and again | Ruby Classes

# p029dog.rb # define class Dog class Dog def initialize(breed, name) # Instance variables @breed = breed @name = name end def bark puts 'Ruff! Ruff!' end def display puts "I am of #{@breed} breed and my name is #{@name}" end end # make an object # Objects are created on the heap d = Dog.new('Labrador', 'Benzy') =begin Every object is "born" with certain innate abilities. To see a list of innate methods, you can call the methods method (and throw in a sort operation, to make it easier to browse visually). Remove the comment and execute. =end # puts d.methods.sort # Amongst these many methods, the methods object_id and respond_to? are important. # Every object in Ruby has a unique id number associated with it puts "The id of d is #{d.object_id}." # To know whether the object knows how to handle the message you want # to send it, by using the respond_to? method. if d.respond...

Full article: http://rubylearning.com/satishtalim/writing_our_own_class...

Tweets

A Guide to Choosing the Best Gems for Your Ruby...

rubyflow.com 08 Apr '14, 2pm

A Guide to Choosing the Best Gems for Your Ruby Project Posted by justinweiss on April 08, 2014 — 0 comments If you need s...

Repository for Ruby domain objects in Elasticse...

rubyflow.com 09 Apr '14, 8am

Repository for Ruby domain objects in Elasticsearch Posted by karmiq on April 09, 2014 — 0 comments Check out a draft of R...

Rails 4.1 is out & you should serialize your se...

edgeguides.rubyonrails.org 08 Apr '14, 8pm

The best way to be sure that your application still works after upgrading is to have good test coverage before you start t...

First Ruby Program: Ruby Study Notes - Best Rub...

rubylearning.com 05 Apr '14, 3am

<Installation | TOC | Features> Let's open up our plain-text editor. As far as possible, ensure that your editor's Tab is ...

Tinkerbox Studios is hiring a Ruby Developer, d...

startupjobs.asia 08 Apr '14, 6pm

Tinkerbox Studios is software development house in Singapore that champions best practices in our craft. We serve startups...

Ruby Developer job at Tinkerbox Studios Singapo...

startupjobs.asia 08 Apr '14, 6pm

Tinkerbox Studios is software development house in Singapore that champions best practices in our craft. We serve startups...

O'Reilly Programming Blog: Ruby - The Unit Test...

rubyflow.com 09 Apr '14, 3pm

O'Reilly Programming Blog: Ruby - The Unit Test-Friendly Language Posted by jaymcgavren on April 09, 2014 — 0 comments Ano...

rake --tasks とすればタスク一覧が見れますよ、と。クソみたいな日本語サイトは参考に...

guides.rubyonrails.org 08 Apr '14, 1am

$ rails generate scaffold HighScore game:string score:integer invoke active_record create db/migrate/20120528060026_create...

TIL about __callee__ in Ruby.

apidock.com 08 Apr '14, 11am

__callee__ and __method__ both return symbol when originally defined, not current There has been some indication that __ca...

Using OpenSSL is dangerous. Use my ECDSA Ruby g...

rubygems.org 08 Apr '14, 6am

This gem implements the Ellipctic Curve Digital Signature Algorithm (ECDSA) almost entirely in pure Ruby.

Ruby on Rails is like IKEA...whaa?

robbyonrails.com 02 Apr '14, 5pm

Recently, I found reading an article by Paul Venezia titled, Fatal abstraction: A bottom-up view of high-level languages ,...

Svitla Ruby Conference Kyiv, 31 MAY - 1 June 2014

rubyflow.ru 04 Apr '14, 2pm

Svitla Ruby Conference Kyiv, 31 MAY - 1 June 2014

Ruby has an interpreter called Maglev.This make...

maglev.github.io 11 Apr '14, 10pm

MagLev MagLev is a fast, stable, 64-bit open source implementation of the Ruby programming language and libraries built on...

Tinkerbox Studio is hiring!

startupjobs.asia 08 Apr '14, 10pm

Tinkerbox Studios is software development house in Singapore that champions best practices in our craft. We serve startups...

Announcing the 2014 Burlington Ruby Conference ...

rubyflow.com 01 Apr '14, 5pm

Announcing 2014 Burlington Ruby Conference Speakers Posted by beerlington on April 01, 2014 — 0 comments I'm excited to an...