Module: AdditionalMethods

Defined in:
lib/pokotarou/additional_methods.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.filepathesObject (readonly)

Returns the value of attribute filepathes.



3
4
5
# File 'lib/pokotarou/additional_methods.rb', line 3

def filepathes
  @filepathes
end

.filepathes_from_ymlObject (readonly)

Returns the value of attribute filepathes_from_yml.



4
5
6
# File 'lib/pokotarou/additional_methods.rb', line 4

def filepathes_from_yml
  @filepathes_from_yml
end

Class Method Details

.import(filepath) ⇒ Object



14
15
16
# File 'lib/pokotarou/additional_methods.rb', line 14

def import filepath
  add(@filepathes, filepath)
end

.import_from_yml(filepath) ⇒ Object



18
19
20
# File 'lib/pokotarou/additional_methods.rb', line 18

def import_from_yml filepath
  add(@filepathes_from_yml, filepath)
end

.initObject



9
10
11
12
# File 'lib/pokotarou/additional_methods.rb', line 9

def init
  @filepathes ||= []
  @filepathes_from_yml = []
end

.removeObject



22
23
24
25
# File 'lib/pokotarou/additional_methods.rb', line 22

def remove
  @filepathes = []
  @filepathes_from_yml = []
end

.remove_filepathes_from_ymlObject



27
28
29
# File 'lib/pokotarou/additional_methods.rb', line 27

def remove_filepathes_from_yml
  @filepathes_from_yml = []
end