Update Ruler.php

Adding possibility to return context keys for dynamically populate context.