Module: RubyMM::Constant::Methods

Included in:
RubyMM::Constant
Defined in:
lib/rubymm/metamodel.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



103
104
105
# File 'lib/rubymm/metamodel.rb', line 103

def inspect
	'Constant{'+self.to_s+'}'
end

#to_sObject



98
99
100
101
# File 'lib/rubymm/metamodel.rb', line 98

def to_s
	return "#{name}" unless container
	"#{container}::#{name}"
end

#top_container_derivedObject



92
93
94
95
96
# File 'lib/rubymm/metamodel.rb', line 92

def top_container_derived
	return nil unless container
	return container if not container.container
	container.top_container
end