Sha256: c72ed5ebe0d1ee833ea223de43aa183461a9c7041d2f124404d75224bd66c84e
Contents?: true
Size: 509 Bytes
Versions: 4
Compression:
Stored size: 509 Bytes
Contents
module Auger class Result attr_accessor :test, :outcome def initialize(test, outcome) @test = test @outcome = outcome end # def to_s # case @outcome # when MatchData then # @outcome.captures.empty? ? "\u2713" : @outcome.captures.join(' ') # when TrueClass then # "\u2713" # when FalseClass then # "\u2717" # when NilClass then # "\u2717" # else # @outcome.to_s # end # end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
auger-1.2.4 | lib/auger/result.rb |
auger-1.2.3 | lib/auger/result.rb |
auger-1.2.2 | lib/auger/result.rb |
auger-1.2.0 | lib/auger/result.rb |