Google

def Entity::matches? string (ENTITYDECL =~ string) == 0 end