BT

Your opinion matters! Please fill in the InfoQ Survey!

Article: Evaluation Options in Ruby

| by Obie Fernandez Follow 0 Followers on Feb 14, 2007. Estimated reading time: less than one minute |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

InfoQ is proud to present a comprehensive discussion of Ruby's various eval methods. This exclusive article is full of rich code examples, written by Domain-Specific Languages master Jay Fields, who after coining the term Business Natural Langages last year, has gone ahead to widespread recognition for his pioneering work in enterprise usage of Ruby and Rails.

In the article, Jay teaches you the capabilities and differences between class_eval, instance_eval and plain eval. His explanation provides insight into how the evaluation methods of Ruby provide very good options for creating concise, readable code.

Read Evaluation Options in Ruby

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

error by haoxiang zhang

Select[:column1, :column2].from[:table1, :table2].where do
equal table1.id, table2.table1_id
end

it is should be use {} instend of do ... end

because of do...end will be send to Select method , not where.

Re: error by haoxiang zhang

sorry, it is my fault.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

2 Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT