Sha256: fb8dc784f6b247cb1c956c704ff738cae63f4738527f90890ca4937ddb79e282
Contents?: true
Size: 358 Bytes
Versions: 1
Compression:
Stored size: 358 Bytes
Contents
module CIM # A Variant is a typed value class Variant attr_reader :type, :value def initialize type = :null, value = nil @type = (type.kind_of? CIM::Type) ? type : CIM::Type.new(type) @value = value unless value == :null end def to_s if @type == :null "null" else "#{@value.inspect}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cim-0.3.0 | lib/cim/variant.rb |