Re: can there be a "with" construction?

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs