Original: It works because its many parts are either on the muzzle or the butt end, which are connected by a steel hinge.
Simplified: It works because its many parts are either on the front or the back end, which are linked by a steel hinge.