Sha256: 6fe88233f20d49fd6011671847563ef9426635efa72147c56b17e47f4ef206fd
Contents?: true
Size: 293 Bytes
Versions: 11
Compression:
Stored size: 293 Bytes
Contents
module Auger class Status VALUES = [:ok, :warn, :error, :exception] attr_accessor :value def initialize(value) raise ArgumentError, "illegal status value" unless VALUES.include? value @value = value end def to_s @value.to_s end end end
Version data entries
11 entries across 11 versions & 1 rubygems