Module: Pokotarou::AdditionalMethods::Main
- Defined in:
- lib/pokotarou/additional_methods/main.rb
Class Attribute Summary collapse
-
.filepathes ⇒ Object
readonly
Returns the value of attribute filepathes.
-
.filepathes_from_yml ⇒ Object
readonly
Returns the value of attribute filepathes_from_yml.
Class Method Summary collapse
- .import(filepath) ⇒ Object
- .import_from_yml(filepath) ⇒ Object
- .init ⇒ Object
- .load ⇒ Object
- .remove ⇒ Object
- .remove_filepathes_from_yml ⇒ Object
Class Attribute Details
.filepathes ⇒ Object (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_yml ⇒ Object (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 |
.init ⇒ Object
11 12 13 14 |
# File 'lib/pokotarou/additional_methods/main.rb', line 11 def init @filepathes ||= [] @filepathes_from_yml = [] end |
.load ⇒ Object
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 |
.remove ⇒ Object
24 25 26 27 |
# File 'lib/pokotarou/additional_methods/main.rb', line 24 def remove @filepathes = [] @filepathes_from_yml = [] end |
.remove_filepathes_from_yml ⇒ Object
29 30 31 |
# File 'lib/pokotarou/additional_methods/main.rb', line 29 def remove_filepathes_from_yml @filepathes_from_yml = [] end |