lib/washout_builder/document/complex_type.rb
# Method that is used to check if the current object has exactly same structure as one of his ancestors
# if it is true, will return true, otherwise will first remove the inheritated elements from his ancestor and then return false
# @see #find_param_structure
# @see #remove_type_inheritable_elements
#
# @param [WasOut::Param] ancestor The complex type that is used to compare to the current complex type
# @return [Boolean] returns true if both objects have same structure, otherwise will first remove the inheritated elements from his ancestor and then return false
# @api public
Method that is used to check if the current object has exactly same structure as one of his ancestors
if it is true, will return true, otherwise will first remove the inheritated elements from his ancestor and then return false
Method that is used to check if the current object has exactly same structure as one of his ancestors if it is true will return true otherwise will first remove the inheritated elements from his ancestor and then return false
def same_structure_as_ancestor?(ancestor)
        param_structure = find_param_structure
        ancestor_structure = ancestor.find_param_structure
        if param_structure.keys == ancestor_structure.keys
          true
        else
          remove_type_inheritable_elements(ancestor_structure.keys)
          false
        end
      end
def same_structure_as_ancestor? ( ancestor ) param_structure = find_param_structure ancestor_structure = ancestor . find_param_structure if param_structure . keys == ancestor_structure . keys true else remove_type_inheritable_elements ( ancestor_structure . keys ) false end end
Method that is used to check if the current object has exactly same structure as one of his ancestors
if it is true, will return true, otherwise will first remove the inheritated elements from his ancestor and then return false
Method that is used to check if the current object has exactly same structure as one of his ancestors if it is true will return true otherwise will first remove the inheritated elements from his ancestor and then return false
returns true if both objects have same structure, otherwise will first remove the inheritated elements from his ancestor and then return false
returns true if both objects have same structure otherwise will first remove the inheritated elements from his ancestor and then return false
Boolean
ancestor
<not_specific>
<not_specific>
ancestor The complex type that is used to compare to the current complex type
ancestor The complex type that is used to compare to the current complex type
see
None
see
None
api
None