Class: TMP::InstanceCore
Instance Method Summary collapse
-
#initialize(path_string) ⇒ InstanceCore
constructor
A new instance of InstanceCore.
Methods included from CORE
#default_folder_path, #folder_path, #path, #project_name, #purge_files, #read, #tmp_folder_init, #write
Constructor Details
#initialize(path_string) ⇒ InstanceCore
Returns a new instance of InstanceCore.
8 9 10 11 12 13 14 15 16 |
# File 'lib/tmp/init.rb', line 8 def initialize path_string unless path_string.class <= String raise ArgumentError, "path must be a string like type" end folder_path path_string end |