export ruleset to ruby conditional blocks and method