Class: TMP::InstanceCore

Inherits:
Object
  • Object
show all
Includes:
CORE
Defined in:
lib/tmp/init.rb

Instance Method Summary collapse

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