From c8b9e5af6d38e73ffa830c7abc137021447cb6bc Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Thu, 3 Jul 2014 17:21:47 +0300 Subject: Fix class name resolution In new method, where we no long explicitly set loaded class name for later resolution we depend on file name being same as class name. However for File output, this is not true, because I didn't want plain File in code to resolve to Oxidized::File, and din't want to always write ::File, File ouput has class name OxFile. This change allows class names to start optionally with string 'Oxidized' if so, they still match. --- lib/oxidized/output/file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/output') diff --git a/lib/oxidized/output/file.rb b/lib/oxidized/output/file.rb index f3443b4..2d08106 100644 --- a/lib/oxidized/output/file.rb +++ b/lib/oxidized/output/file.rb @@ -1,5 +1,5 @@ module Oxidized -class OxFile < Output +class OxidizedFile < Output require 'fileutils' def initialize -- cgit v1.2.1