Module: Chione::Inspection

Included in:
Aspect, Component, Entity, Manager, System
Defined in:
lib/chione/mixins.rb

Overview

An extensible #inspect for Chione objects.

Instance Method Summary collapse

Instance Method Details

#inspectObject

Return a human-readable representation of the object suitable for debugging.



96
97
98
99
100
101
102
# File 'lib/chione/mixins.rb', line 96

def inspect
	return "#<%p:%#016x %s>" % [
		self.class,
		self.object_id * 2,
		self.inspect_details,
	]
end

#inspect_detailsObject

Return the detail portion of the inspect output for this object.



106
107
108
# File 'lib/chione/mixins.rb', line 106

def inspect_details
	return ''
end