Module: Pokotarou::AdditionalMethods::Main

Defined in:
lib/pokotarou/additional_methods/main.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.filepathesObject (readonly)

Returns the value of attribute filepathes.



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

def filepathes
  @filepathes
end

.filepathes_from_ymlObject (readonly)

Returns the value of attribute filepathes_from_yml.



6
7
8
# File 'lib/pokotarou/additional_methods/main.rb', line 6

def filepathes_from_yml
  @filepathes_from_yml
end

Class Method Details

.import(filepath) ⇒ Object



16
17
18
# File 'lib/pokotarou/additional_methods/main.rb', line 16

def import filepath
  add(@filepathes, filepath)
end

.import_from_yml(filepath) ⇒ Object



20
21
22
# File 'lib/pokotarou/additional_methods/main.rb', line 20

def import_from_yml filepath
  add(@filepathes_from_yml, filepath)
end

.initObject



11
12
13
14
# File 'lib/pokotarou/additional_methods/main.rb', line 11

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

.loadObject



33
34
35
36
# File 'lib/pokotarou/additional_methods/main.rb', line 33

def load
  @filepathes.each do |filepath|; require filepath end
  @filepathes_from_yml.each do |filepath|; require filepath end
end

.removeObject



24
25
26
27
# File 'lib/pokotarou/additional_methods/main.rb', line 24

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

.remove_filepathes_from_ymlObject



29
30
31
# File 'lib/pokotarou/additional_methods/main.rb', line 29

def remove_filepathes_from_yml
  @filepathes_from_yml = []
end