# Re: can there be a "with" construction?

**URL:** <https://www.ruby-forum.com/t/re-can-there-be-a-with-construction/73889>\
**Category:** Ruby\
**Created:** [October 27, 2006, 8:02pm UTC](https://www.ruby-forum.com/t/re-can-there-be-a-with-construction/73889 "2006-10-27T20:02:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [October 27, 2006, 8:02pm UTC](https://www.ruby-forum.com/t/re-can-there-be-a-with-construction/73889/1 "2006-10-27T20:02:11Z")

</div>

matt neuburg wrote:

> with system.startup {  
> string(license)  
> }

def with( obj, &block )  
obj.instance\_eval( &block )  
end

It’s not quite the same as ‘with’ in some languages (which combine the  
specified scope with the current scope) but maybe it will make you  
happy.
