Ruby code blocks
Ruby's support for blocks (i.e., closures) is useful in defining internal DSLs.
Ruby code blocks (called closures in other languages) are chunks of code between braces or between do- end that you can associate with method invocations, almost as if they were parameters. A Ruby block is a way of grouping statements, and may appear only in the source next to a method call; the block is written starting on the same line as the method call's last parameter (or the closing …
Ruby code blocks
Ruby's support for blocks (i.e., closures) is useful in defining internal DSLs.
Ruby code blocks (called closures in other languages) are chunks of code between braces or between do- end that you can associate with method invocations, almost as if they were parameters. A Ruby block is a way of grouping statements, and may appear only in the source next to a method call; the block is written starting on the same line as the method call's last parameter (or the closing …
If you are interested in ruby/rails/tech/geeky we should meet up for a coffee sometime, just ping me via this origo messaging system or in comments,
KR,
Titas Norkūnas
P.S: If you have plans to go to Lithuania ( Vilnius) and want to meet some ruby people there, get in touch. We organize almost-monthly ruby workshops with live coding and pizza/beers after that.
The talk is in Poznan, Poland on October 14th. If you can't make it there, but are near Copenhagen, you can also see our rehearsal of the talk at the Copenhagen Ruby Brigade meeting on October 10th.
We've received some reports about users being unable to install Ruby Enterprise Edition on OS X Lion. Apparently the compilation process segfaults. It turns out that OS X Lion has switched to llvm-gcc as the default compiler. We currently suspect that the segfaults are caused by incompatibility between llvm-gcc's code generation and the MBARI patch set (similar problems have been seen in the past but with other compilers on other platforms).
To install Ruby Enterprise Edition…
Requested a free copy at about a month ago, finally "Version Control by Example" is here.
By Jennifer Burke View Comments
Share and Enjoy:
Opscode is proud to be a sponsor of Seattle Beta Launch Event. Seattle Beta provides a social forum for young(er) start ups to mingle and present their wares. Twenty dollars gets you in the door for an evening of live demos and conversation. Come see what some of the new kids on the block have to offer!
For more information and to register - Seattle Beta
Share and Enjoy:
blog comments powered by Disqus
By Jennifer Burke View Comments
Share and Enjoy:
Opscode is pleased to announce we will be sponsoring the Enterprise Cloud Summit & exhibiting during the InterOp Expo at the Javits Center in New York City. Our Senior Technical Evangelist, Sean O'Meara, will take the stage during the Summit (October 3rd @ 4:10) to provide attendees with a quick introduction to Chef. Sean will also be on hand, Thursday, October 6th @ 4:40 in the …
Many good things in life take longer than expected but in the end are well worth the wait. With the release of fog 1.0 we have a shining example. Begun in mid-2009 and with more than 2 years in production usage at Engine Yard, fog has seen 240,000 downloads. This is definitely a rock-solid 1.0 that has seen some real battle testing!
fog is a Ruby gem that allows you to control a number of cloud infrastructure services through a common API. fog provides the basis for building applications …