matt neuburg:
> Some languages have a "with" construction, where undefined methods are
> routed to a designated object. Here's an example from UserTalk:
> 
> with system.startup {
>    string(license)
> }

I sometimes feel as if something like this might be a nice Ruby idiom:

class Object
  def with
    yield self
    self
  end
end

@object = Something.new.with { |x|
  x.name = 'Chunky bacon'
  x.description = 'A very tasty piece of finest chunky bacon.'
  x.size = 12
}

Kalman