‘Traffic-control signal’ means any official traffic-control device, whether manually, electrically or mechanically operated, placed or erected by a public authority or railroad, by which traffic is alternately directed to stop or proceed.