# File lib/ruby_toggle_file.rb, line 3 def run_hooks_with_args_until_success(regexp, *args) private_methods(true).concat(methods(true)).grep(regexp).sort.each do |m| _ = __send__(m, *args) return _ if _ end nil end