Sha256: 283bb794e523b0ea5e43c2958fcb5ae34c89476b1a41ac392e97515bf09bdfc9
Contents?: true
Size: 735 Bytes
Versions: 1
Compression:
Stored size: 735 Bytes
Contents
module MOF class Result attr_reader :classes, :associations, :indications, :qualifiers, :instances def initialize @qualifiers = [] @classes = [] @associations = [] @indications = [] @instances = [] end def is_qualifier? name !qualifier(name).nil? end private def join_to_s title, array s = "" if array.size > 0 s << "\n// #{title} [#{array.size}]\n" s << array.join("\n") end s end public def to_s s = join_to_s( "Qualifiers", @qualifiers ) s << join_to_s( "Classes", @classes ) s << join_to_s( "Associations", @associations ) s << join_to_s( "Indications", @indications ) s << join_to_s( "Instances", @instances ) s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mof-0.3.0 | lib/mof/result.rb |