app/models/entity.rb
def match?(entity)
        if ( entity.name == name && entity.type == type )
          return true
        end
      false
      end
# Method returns true if entity has the same attributes
# false otherwise
Method returns true if entity has the same attributes
false otherwise
Method returns true if entity has the same attributes false otherwise
def match?(entity)
        if ( entity.name == name && entity.type == type )
          return true
        end
      false
      end
def match? ( entity ) if ( entity . name == name && entity . type == type ) return true end false end
Method returns true if entity has the same attributes
false otherwise
Method returns true if entity has the same attributes false otherwise
entity