Sha256: af94c811e35de4296a623d4a1460ee4118c8009e3d4e4b968c9b7c33a870eaab
Contents?: true
Size: 751 Bytes
Versions: 5
Compression:
Stored size: 751 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") s << ";" 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
mof-1.2.5 | lib/mof/result.rb |
mof-1.2.4 | lib/mof/result.rb |
mof-1.2.2 | lib/mof/result.rb |
mof-1.2.0 | lib/mof/result.rb |
mof-0.3.2 | lib/mof/result.rb |