Sha256: 09ab78f176aecf60ef15d85e8d3e106e8a3c1c9015474082d6b33939bd10d9b4

Contents?: true

Size: 448 Bytes

Versions: 6

Compression:

Stored size: 448 Bytes

Contents

module TurnipFormatter
  module Resource
    module Step
      module FailureResult
        def failed?
          !exceptions.empty?
        end

        def exceptions
          @exceptions ||= []
        end

        #
        # @param  [Array<Exception>]  exs
        #
        def set_exceptions(exs)
          if !exs.is_a?(Array)
            exs = [exs]
          end

          exceptions.concat(exs)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
turnip_formatter-0.8.0 lib/turnip_formatter/resource/step/failure_result.rb
turnip_formatter-0.7.2 lib/turnip_formatter/resource/step/failure_result.rb
turnip_formatter-0.7.1 lib/turnip_formatter/resource/step/failure_result.rb
turnip_formatter-0.7.0 lib/turnip_formatter/resource/step/failure_result.rb
turnip_formatter-0.6.1 lib/turnip_formatter/resource/step/failure_result.rb
turnip_formatter-0.6.0 lib/turnip_formatter/resource/step/failure_result.rb