class PIM::AttributeBuilder
Public Class Methods
build_attribute(data_module, name, parent, label = nil, default_value = nil, &block)
click to toggle source
# File pim.rb, line 4832 def self.build_attribute data_module, name, parent, label = nil, default_value = nil, &block builder = AttributeBuilder.new name, parent, label, default_value DataModuleObject.set_data_module(builder, data_module) builder.instance_exec(&block) if block builder.build end
new(name, parent, l, v)
click to toggle source
Calls superclass method
PIM::AttributeModifier::new
# File pim.rb, line 4839 def initialize name, parent, l, v super(name) @parent = parent label l if l default_value v if v end
Public Instance Methods
build()
click to toggle source
# File pim.rb, line 4846 def build attribute = PIM::Attribute.new @name, @parent, @params, @states DataModuleObject.set_data_module(attribute, data_module) attribute.model_defined = true attribute end