class PIM::AttributeTemplate
Attributes
base_class[R]
params[R]
states[R]
Public Class Methods
new(type_name, base_class, params = {})
click to toggle source
# File pim.rb, line 5115 def initialize type_name, base_class, params = {}, states = {} @base_class = base_class @params = params.merge(:type_name => type_name) @states = states end
Public Instance Methods
custom_param(name, value = nil)
click to toggle source
# File pim.rb, line 5127 def custom_param name, value = nil @params[:custom] ||= {} name = PIM.to_sym(name) @params[:custom][name] = value unless value.nil? @params[:custom][name] end
param(name, value = nil)
click to toggle source
# File pim.rb, line 5121 def param name, value = nil name = PIM.to_sym(name) @params[name] = value unless value.nil? @params[name] end