I am working on an app which has the below code:
def app
@app ||= begin
if !::File.exist? options[:config]
abort "configuration #{options[:config]} not found"
end
app, myoptions = Rack::Builder.parse_file(self.options[:config], opt_parser)
self.myoptions.merge! myoptions
app
end
end
I am struggling to get my head around several parts of it..
@app||= begin...end
Does this mean that if @app does not exist the block is run?
app ,options = rack::builder
What does the comma do to it?
Please help