class ActiveFacts::Metamodel::ValueField
Public Instance Methods
comment()
click to toggle source
# File lib/activefacts/metamodel/extensions.rb, line 2266 def comment (c = parent && parent.comment) && c != '' ? c : name end
fork_to_new_parent(parent)
click to toggle source
# File lib/activefacts/metamodel/extensions.rb, line 2270 def fork_to_new_parent parent # When we fork from a ValueField, we want to use the name of the ValueType, not the ValueField name @constellation.fork self, guid: :new, parent: parent, name: object_type.name, injection_annotation: nil end
inspect()
click to toggle source
# File lib/activefacts/metamodel/extensions.rb, line 2258 def inspect "#{self.class.basename} #{object_type.name.inspect}" end
show_trace()
click to toggle source
# File lib/activefacts/metamodel/extensions.rb, line 2262 def show_trace trace :composition, "#{ordinal}: #{inspect}#{name ? " (as #{name.inspect})" : ''}" end