From 893aeac024caa141448b3217c6eea43fccafb40c Mon Sep 17 00:00:00 2001 From: shinokaro Date: Tue, 30 Jul 2024 03:34:13 +0900 Subject: [PATCH] Extend CommandOutput module at module definition scope --- bin/ocran | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ocran b/bin/ocran index eaa919e..f0731cb 100644 --- a/bin/ocran +++ b/bin/ocran @@ -23,6 +23,9 @@ module Ocran def self.warning? = @option.warning? + load File.expand_path("../lib/ocran/command_output.rb", __dir__) + extend CommandOutput + def Ocran.fatal_error(s) error s exit 1 @@ -33,9 +36,6 @@ module Ocran def self.run_script? = @option.run_script? def Ocran.init - load File.expand_path("../lib/ocran/command_output.rb", __dir__) - extend CommandOutput - load File.expand_path("../lib/ocran/runtime_environment.rb", __dir__) @pre_env = RuntimeEnvironment.save