helpers/menu_helpers.rb
# A program function can be hidden according to the boolean
# value of constants in AppConst.
A program function can be hidden according to the boolean
value of constants in AppConst.
A program function can be hidden according to the boolean value of constants in AppConst .
def progfunc_allowed?(hide_if_true, hide_if_false) 
    return true if hide_if_true.nil? && hide_if_false.nil?
    ok = true
    (hide_if_true || '').split(',').each do |ht|
      ok = false if app_const_true?(ht)
    end
    (hide_if_false || '').split(',').each do |hf|
      ok = false unless app_const_true?(hf)
    end
    ok
  end
def progfunc_allowed? ( hide_if_true , hide_if_false ) return true if hide_if_true . nil? && hide_if_false . nil? ok = true ( hide_if_true || '' ) . split ( ',' ) . each do | ht | ok = false if app_const_true? ( ht ) end ( hide_if_false || '' ) . split ( ',' ) . each do | hf | ok = false unless app_const_true? ( hf ) end ok end
A program function can be hidden according to the boolean
value of constants in AppConst.
A program function can be hidden according to the boolean value of constants in AppConst .
# rubocop:disable Metrics/CyclomaticComplexity
hide_if_true
<not_specific>
hide_if_false
<not_specific>