Class: Svgeez::Source
- Inherits:
-
Object
- Object
- Svgeez::Source
- Defined in:
- lib/svgeez/source.rb
Constant Summary collapse
- DEFAULT_INPUT_FOLDER_PATH =
'./_svgeez'.freeze
Instance Attribute Summary collapse
-
#folder_path ⇒ Object
readonly
Returns the value of attribute folder_path.
Instance Method Summary collapse
- #file_paths ⇒ Object
-
#initialize(options = {}) ⇒ Source
constructor
A new instance of Source.
Constructor Details
#initialize(options = {}) ⇒ Source
Returns a new instance of Source.
7 8 9 |
# File 'lib/svgeez/source.rb', line 7 def initialize( = {}) @folder_path = File.(.fetch('source', DEFAULT_INPUT_FOLDER_PATH)) end |
Instance Attribute Details
#folder_path ⇒ Object (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_paths ⇒ Object
11 12 13 |
# File 'lib/svgeez/source.rb', line 11 def file_paths Dir.glob(file_paths_pattern) end |