Sha256: bfddcc843dff76e84302fc954fc51a572a0c390b66daefe6785d8880ec370220

Contents?: true

Size: 684 Bytes

Versions: 2

Compression:

Stored size: 684 Bytes

Contents

$:.unshift File.dirname(__FILE__) 

require 'iso'

module Visage
  
  class Converter
    
    def initialize( source, destination, test )
      @source = source
      @destination = destination
      @test = test
    end
    
    def process
      if( Visage.valid_source_file?( @source ) )
        iso = Visage::ISO.new( @source, @destination )
        iso.process( @test )
      else
        Dir.open( @source ).entries.each do | file |
          if( Visage.valid_source_file?( file ) )
            iso = Visage::ISO.new( File.join( @source, file ), @destination )
            iso.process( @test )
          end          
        end        
      end
    end  
      
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nerdEd-visage-0.2.4 lib/visage/converter.rb
nerdEd-visage-0.2.5 lib/visage/converter.rb