From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5A2A11FAFB for ; Mon, 3 Apr 2017 19:56:32 +0000 (UTC) From: Eric Wong To: yahns-public@yhbt.net Subject: [PATCH] config: more descriptive variable name Date: Mon, 3 Apr 2017 19:56:32 +0000 Message-Id: <20170403195632.27170-1-e@80x24.org> List-Id: That object is not a Rack app, so lets avoid confusing ourselves. --- lib/yahns/config.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/yahns/config.rb b/lib/yahns/config.rb index 98fe170..e545d59 100644 --- a/lib/yahns/config.rb +++ b/lib/yahns/config.rb @@ -328,8 +328,8 @@ def app(type, *args, &block) "#{var}: #{file} did not register #{type} in #{self.class}::APP_CLASS" # apps may have multiple configurator contexts - app = @app_instances[klass.instance_key(*args)] = klass.new(*args) - ctx = app.config_context + app_cfg = @app_instances[klass.instance_key(*args)] = klass.new(*args) + ctx = app_cfg.config_context if block_given? @block = CfgBlock.new(:app, ctx) instance_eval(&block) -- EW