lib/core/lorj_basecontroller.rb
# Function to check if match_value is found in an Array.
#
# * *args*:
#   - value      : The controller value to test matching.
#   - match_value: The matching subhash match.
#     It can be an Array of match_value or just match_value
#
# * *returns*:
#   - treated: true if match_value is Array
#   - status : true if match. false otherwise
#
Function to check if match_value is found in an Array.
*args*:
value      : The controller value to test matching.
match_value: The matching subhash match.
It can be an Array of match_value or just match_value

*returns*:
treated: true if match_value is Array
status : true if match. false otherwise
Function to check if match_value is found in an Array . * args * : value : The controller value to test matching . match_value : The matching subhash match . It can be an Array of match_value or just match_value * returns * : treated : true if match_value is Array status : true if match . false otherwise
def lorj_filter_array(value, match_value) 
      return [false, false] unless value.is_a?(Array) ||
                                   match_value.is_a?(Array)
      if value.is_a?(Array) && match_value.is_a?(Array)
        return [true, (match_value - value).empty?]
      end
      [true, value.include?(match_value)]
    end
def lorj_filter_array ( value , match_value ) return [ false , false ] unless value . is_a? ( Array ) || match_value . is_a? ( Array ) if value . is_a? ( Array ) && match_value . is_a? ( Array ) return [ true , ( match_value - value ) . empty? ] end [ true , value . include? ( match_value ) ] end
Function to check if match_value is found in an Array.
Function to check if match_value is found in an Array .
# :doc:
value
<not_specific>
match_value
<not_specific>