Module: Indofix

Defined in:
lib/indofix.rb,
lib/indofix/errors.rb,
lib/indofix/version.rb,
lib/indofix/indofix_kpst_helper.rb,
lib/indofix/indofix_other_helper.rb,
lib/indofix/indofix_verba_helper.rb,
lib/indofix/indofix_nomina_helper.rb

Defined Under Namespace

Classes: Error, IndofixKpstHelper, IndofixNominaHelper, IndofixOtherHelper, IndofixVerbaHelper

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.check(params, string) ⇒ Object



30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/indofix.rb', line 30

def check(params, string)
  result = ''
  if (!params.nil? || !string.nil?)
    case params
      when 'nomina'
        result = check_nomina.nomina_x_an(string)
      when 'verba'
        result = check_verba.verba_x_an(string)
    end
    result[1]
  else
    raise(Error, "Indofix Error")
  end
end

.check_kpstObject



22
23
24
# File 'lib/indofix.rb', line 22

def check_kpst
  @check_kpst ||= IndofixKpstHelper.new
end

.check_nominaObject



14
15
16
# File 'lib/indofix.rb', line 14

def check_nomina
  @check_nomina ||= IndofixNominaHelper.new
end

.check_otherObject



26
27
28
# File 'lib/indofix.rb', line 26

def check_other
  @check_other ||= IndofixOtherHelper.new
end

.check_verbaObject



18
19
20
# File 'lib/indofix.rb', line 18

def check_verba
  @check_verba ||= IndofixVerbaHelper.new
end

.welcomeObject



10
11
12
# File 'lib/indofix.rb', line 10

def welcome
  "Welcome to Indofix"
end