Sha256: ab0fc8b8e3784eb1a3d65456c703708d5d4d5155b35fdda3647164cac852bdb5

Contents?: true

Size: 426 Bytes

Versions: 7

Compression:

Stored size: 426 Bytes

Contents

module Svgeez
  class Source
    DEFAULT_INPUT_FOLDER_PATH = './_svgeez'.freeze

    attr_reader :folder_path

    def initialize(options = {})
      @folder_path = File.expand_path(options.fetch('source', DEFAULT_INPUT_FOLDER_PATH))
    end

    def file_paths
      Dir.glob(file_paths_pattern)
    end

    private

    def file_paths_pattern
      @file_paths_pattern ||= File.join(folder_path, '*.svg')
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
svgeez-4.1.0 lib/svgeez/source.rb
svgeez-4.0.0 lib/svgeez/source.rb
svgeez-3.2.0 lib/svgeez/source.rb
svgeez-3.1.0 lib/svgeez/source.rb
svgeez-3.0.0 lib/svgeez/source.rb
svgeez-2.0.1 lib/svgeez/source.rb
svgeez-2.0.0 lib/svgeez/source.rb