# # cim/property.rb - class CIM::Property # # A pure-Ruby implementation of the CIM meta model. # # Copyright (c) 2010 Klaus Kämpf # # 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