Update workflow.rb

update to accept bang and non-bang methods.