class Indofix::IndofixKpstHelper
Public Instance Methods
imbuhan_m_x(string)
click to toggle source
pelepasan imbuhan 'me' dengan 'm'
# File lib/indofix/indofix_kpst_helper.rb, line 59 def imbuhan_m_x(string) @verex = VerEx.new do start_of_line find 'm' begin_capture anything end_capture end_of_line end @verex.match(string) end
imbuhan_n_x(string)
click to toggle source
pelepasan imbuhan 'me' dengan 'n'
# File lib/indofix/indofix_kpst_helper.rb, line 7 def imbuhan_n_x(string) @verex = VerEx.new do start_of_line find 'n' begin_capture anything end_capture end_of_line end @verex.match(string) end
imbuhan_ng_x(string)
click to toggle source
pelepasan imbuhan 'me' dengan 'ng'
# File lib/indofix/indofix_kpst_helper.rb, line 20 def imbuhan_ng_x(string) @verex = VerEx.new do start_of_line find 'ng' begin_capture anything end_capture end_of_line end @verex.match(string) end
imbuhan_nge_x(string)
click to toggle source
pelepasan imbuhan 'me' dengan 'nge'
# File lib/indofix/indofix_kpst_helper.rb, line 33 def imbuhan_nge_x(string) @verex = VerEx.new do start_of_line find 'nge' begin_capture anything end_capture end_of_line end @verex.match(string) end
imbuhan_ny_x(string)
click to toggle source
pelepasan imbuhan 'me' dengan 'ny'
# File lib/indofix/indofix_kpst_helper.rb, line 46 def imbuhan_ny_x(string) @verex = VerEx.new do start_of_line find 'ny' begin_capture anything end_capture end_of_line end @verex.match(string) end
Private Instance Methods
process_imbuhan_n_ng(match)
click to toggle source
auto processing pemroresan pelepasan n -> ng(nge)/ny, m
# File lib/indofix/indofix_kpst_helper.rb, line 74 def process_imbuhan_n_ng(match) @match = match if !@match.nil? @string = @match[1] if !imbuhan_n_x(@string).nil? if !imbuhan_ng_x(@string).nil? if !imbuhan_nge_x(@string).nil? imbuhan_nge_x(@string) else imbuhan_ng_x(@string) end elsif !imbuhan_ny_x(@string).nil? imbuhan_ny_x(@string) else imbuhan_n_x(@string) end elsif !imbuhan_m_x(@string).nil? imbuhan_m_x(@string) else @match end else @match end end
process_ktsp(match)
click to toggle source
TODO: next
# File lib/indofix/indofix_kpst_helper.rb, line 101 def process_ktsp(match) @match = match if !@match.nil? @string = @match[1] else @match end end