Module: Pokotarou
- Defined in:
- lib/pokotarou.rb,
lib/pokotarou/version.rb
Defined Under Namespace
Classes: NotFoundLoader
Constant Summary collapse
- VERSION =
'1.1.1'
Class Method Summary collapse
- .execute(input) ⇒ Object
- .gen_handler(filepath) ⇒ Object
- .import(filepath) ⇒ Object
- .reset ⇒ Object
- .set_args(hash) ⇒ Object
Class Method Details
.execute(input) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/pokotarou.rb', line 10 def execute input # if input is filepath, generate config_data if input.kind_of?(String) DataRegister.regist(gen_config(input)) else DataRegister.regist(input) end end |
.gen_handler(filepath) ⇒ Object
32 33 34 |
# File 'lib/pokotarou.rb', line 32 def gen_handler filepath PokotarouHandler.new(gen_config(filepath)) end |
.import(filepath) ⇒ Object
19 20 21 |
# File 'lib/pokotarou.rb', line 19 def import filepath AdditionalMethods.import(filepath) end |
.reset ⇒ Object
27 28 29 30 |
# File 'lib/pokotarou.rb', line 27 def reset AdditionalMethods.remove() Arguments.remove() end |