An accessory device for being mounted to a longitudinal rail carried by a
firearm and accommodating longitudinal rails of different configurations.
A preferred embodiment comprises a light beam generator including a
housing, elongate members removably secured to the housing and
complementing the rail for enabling the housing to be retainably slid
along the rail, a transverse rail latching device removably secured to
the housing, and a replaceable ambidextrous tail cap switch.