Class: Svgeez::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/svgeez/source.rb

Constant Summary collapse

DEFAULT_INPUT_FOLDER_PATH =
'./_svgeez'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Source

Returns a new instance of Source.



7
8
9
# File 'lib/svgeez/source.rb', line 7

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

Instance Attribute Details

#folder_pathObject (readonly)

Returns the value of attribute folder_path.



5
6
7
# File 'lib/svgeez/source.rb', line 5

def folder_path
  @folder_path
end

Instance Method Details

#file_pathsObject



11
12
13
# File 'lib/svgeez/source.rb', line 11

def file_paths
  Dir.glob(file_paths_pattern)
end