06 Mar '12, 1pm

Simple Ruby Syntax:

Simple Ruby Syntax:

Ruby is not as widely as used a language as I would like. Here's enough of its syntax to help you read the code in my article. March 2003 Martin Fowler Tags: Contents Ruby is an object-oriented language with classes and methods. Classes are introduced with the keyword class and methods with the keyword def . All blocks are ended with end . Instance variables in a class are named with a leading @ , global variables have a leading $ . You can declare instance variables, together with accessor functions with attr_accessor . The method initialize is called when an object is created. One of Ruby's nicest elements are blocks. A good example of a block is looping through a collection. There's two equivalent syntaxes for printing each order in a collection of orders orders.each {|o| print o} and orders.each do |o| print o end Blocks are also good for releasing resources automatica...

Full article: http://martinfowler.com/articles/simpleRuby.html

Tweets

#Ruby for other languages: ...the main differen...

ruby-lang.org 07 Mar '12, 2am

When you first look at some Ruby code, it will likely remind you of other programming languages you’ve used. This is on pu...

Top Ruby Article: With Apologies, Some Senseles...

gilesbowkett.blogspot.com 07 Mar '12, 11pm

lost an argument with me on GitHub ranted about it on his blog: Giles... bemoans bundler, because typing "bundle exec" rep...

@MikeG1 can you promote rails-api on Thanks!

afreshcup.com 12 Mar '12, 4pm

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

method_profiler: Find slow methods in your Ruby...

rubyflow.com 05 Mar '12, 3pm

method_profiler: Find slow methods in your Ruby code Posted by Perceptes on March 05, 2012 — 0 comments MethodProfiler col...

Ruby on REST 4: Using Representers in Rails: Th...

rubyflow.com 05 Mar '12, 7pm

Ruby on REST 4: Using Representers in Rails Posted by apotonick on March 05, 2012 — 0 comments The fourth post in the "Rub...

Metaprogramming in Ruby: It’s All About the Self

yehudakatz.com 07 Mar '12, 8am

@wycats Right. That is why they are unnecessary and only confuse developers. I didn’t see this until I happened to discove...

4 winners for beauty/ makeup products announced in comment box! Thanks to #smoochiezz for the products!

4 winners for beauty/ makeup products announced...

bongqiuqiu.blogspot.com 06 Mar '12, 2am

Simple, Sultry and maybe a little bit of Sexy Makeup O.O HELLO~! Here's a simple and quick step-by-step guide to show you ...

I love Ruby because

rubyflow.com 12 Mar '12, 8pm

I love Ruby because ... Posted by rtdp on March 12, 2012 — 0 comments I really love ruby language, and so do many folks us...

Ruby Brasil:

ruby-br.org 09 Mar '12, 7pm

A Brain está contratando desenvolvedores com experiência em Ruby on Rails para dois projetos diferentes no RJ. Os interess...

STEP 11: 確認画面(1) - Ruby on Rails ステップ・バイ・ステップ - Ruby on Rails with OIAX:

STEP 11: 確認画面(1) - Ruby on Rails ステップ・バイ・ステップ -...

oiax.jp 07 Mar '12, 2am

今回からしばらく「確認画面」をテーマにして話を続けます。 タスクの新規作成フォームに入力して「次へ」をクリックすると、入力内容をユーザーに確認させる画面が表示されて「保存」ボタンをクリックすると実際にタスクがデータベースに保存され、「戻る」ボタ...

The Last Week in Ruby: RSpec 2.8, Redcar 0.12, ...

rubyinside.com 04 Mar '12, 8am

Welcome to this week's Web-based syndication of Ruby Weekly , the Ruby e-mail newsletter. While I have you, be sure to fol...

Van Cleef & Arpels Clads Stars at A Simple Life Premiere

Van Cleef & Arpels Clads Stars at A Simple Life...

luxury-insider.com 05 Mar '12, 5am

Having enjoyed acclaim on the international film circuit, A Simple Life returns to its birthplace with an hotly-anticipate...

Class and Instance Variables In Ruby // RailsTi...

railstips.org 02 Mar '12, 10am

Update (6/13/2008): I posted a bit more on the topic with example uses in the wild . First, let me preface this article wi...

Top Ruby Article: Double Shot #832:

afreshcup.com 06 Mar '12, 11am

Tuesday, March 6, 2012 at 5:14AM Someone has been feeding my inbox growth hormones. I wish they'd stop. iPad HTTP Debuggin...

@simonszu ich wollte Ruby 1.9 probieren und das...

ruby-lang.org 08 Mar '12, 9pm

Kompilierung aus dem Quellcode ist der Standard, nach dem Software seit vielen, vielen Jahren verteilt wird. Die meisten S...