After the pleadings are closed but within such time as not to delay the trial, any party may move for judgment on the pleadings. If, on such motion, matters outside the pleading are presented to and not excluded by the court, the motion shall be treated as one for summary judgment and disposed of as provided for in Rule 56, and all parties shall be given reasonable opportunity to present all materials made pertinent to such a motion by Rule 56.
Ky. R. Civ. P. 12.03