module Workflows
  module Service
    def success!(value=true)
      value
    end

    def failure!(value=false)
      Workflows::Error.to_error(value)
    end
  end
end

module Workflows
  module Service
    extend self

    def success!(value=true)
      value
    end

    def failure!(value=false)
      Workflows::Error.to_error(value)
    end
  end
end

Make Services methods available as module functions
Make Services methods available as module functions
