title: How to conditionally exclude a scenario in cucumber
body: <p>I am trying to exclude scenarios programmatically in cucumber. Testcases are OS dependent in my case. Say if underlying OS is Windows, I would like to skip certain scenarios. After some research on google I found out that there a place where you can hook up this logic in ruby i.e. <code>AfterConfiguration</code>. However, I am not able to find where I can hook this up to cucumber through scala.
  I am also aware that it is not good practice to exclude scenarios but I have no choice.</p>