The Artima Developer Community
Sponsored Link

Web Buzz Forum
Ruby: Object.with

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Chris Eidhof

Posts: 53
Nickname: chriseidho
Registered: Nov, 2005

Chris Eidhof is a student and part-time webdeveloper
Ruby: Object.with Posted: Mar 4, 2006 3:49 PM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Chris Eidhof.
Original Post: Ruby: Object.with
Feed Title: buzzdriver
Feed URL: http://www.my-website.nl/weblog/feed/
Feed Description: This is a technical weblog about web development, and mainly focussed on markup, css, javascript, semantic web, but also other things like linux, open source and general tech-related subjects.
Latest Web Buzz Posts
Latest Web Buzz Posts by Chris Eidhof
Latest Posts From buzzdriver

Advertisement
Ben and I were working on a Ruby on Rails project for Biton, and we’ve built a cool Object.with function. It goes like this: class Object def with yield self end end Resulting in the following (example) code: Pages.find(1).last_revision.with { ¦r¦ puts r.body } I really, really like Ruby! Tags: ruby, development

Read: Ruby: Object.with

Topic: Future Methodist Website Previous Topic   Next Topic Topic: Tap this NSA!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use