Sha256: 59525fe14e3dba18662edfb1de1c0988308cd7119d5525cf67adc4cdbf0ce6b7
Contents?: true
Size: 895 Bytes
Versions: 1
Compression:
Stored size: 895 Bytes
Contents
# # cim/property.rb - class CIM::Property # # A pure-Ruby implementation of the CIM meta model. # # Copyright (c) 2010 Klaus Kämpf <kkaempf@suse.de> # # Licensed under the Ruby license # module CIM # # A Property defines a data member of a Class. # # For method members, see Method. # class Property < CIM::ClassFeature attr_reader :default # # Create a Property with type (Type) and name (String), optional QualifierSet and default value # # call-seq: # Property.new(:bool, "flag") # Property.new(:bool, "flag", qualifier_set) # Property.new(:bool, "flag", qualifier_set, true) # def initialize type, name, qualifier_set=nil, default=nil @default = default super type, name, qualifier_set end # # Makes a Property recognizable in the set of Class features. # def property? true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cim-0.5.0 | lib/cim/property.rb |