Module: Pokotarou

Defined in:
lib/pokotarou.rb,
lib/pokotarou/version.rb

Defined Under Namespace

Classes: NotFoundLoader

Constant Summary collapse

VERSION =
'1.1.2'

Class Method Summary collapse

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

.resetObject



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

def reset
  AdditionalMethods.remove()
  Arguments.remove()
end

.set_args(hash) ⇒ Object



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

def set_args hash
  Arguments.import(hash)
end