Module: AdditionalMethods
- Defined in:
- lib/pokotarou/additional_methods.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
- .remove ⇒ Object
- .remove_filepathes_from_yml ⇒ Object
Class Attribute Details
.filepathes ⇒ Object (readonly)
Returns the value of attribute filepathes.
3 4 5 |
# File 'lib/pokotarou/additional_methods.rb', line 3 def filepathes @filepathes end |
.filepathes_from_yml ⇒ Object (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 |
.init ⇒ Object
9 10 11 12 |
# File 'lib/pokotarou/additional_methods.rb', line 9 def init @filepathes ||= [] @filepathes_from_yml = [] end |
.remove ⇒ Object
22 23 24 25 |
# File 'lib/pokotarou/additional_methods.rb', line 22 def remove @filepathes = [] @filepathes_from_yml = [] end |
.remove_filepathes_from_yml ⇒ Object
27 28 29 |
# File 'lib/pokotarou/additional_methods.rb', line 27 def remove_filepathes_from_yml @filepathes_from_yml = [] end |