Is self existing for an example purpose?

All mentities annotated with is example or located inside a mentity that is an example are considered as examples.

Property definitions

nitc :: model_examples $ MEntity :: is_example
	# Is `self` existing for an example purpose?
	#
	# All mentities annotated with `is example` or located inside a mentity that
	# is an example are considered as examples.
	fun is_example: Bool do return mexample != null
src/model/model_examples.nit:48,2--52,48

nitc :: model_examples $ MClass :: is_example
	redef var is_example is lazy do return intro.is_example
src/model/model_examples.nit:92,2--56

nitc :: model_examples $ MGroup :: is_example
	redef var is_example is lazy do
		var parent = self.parent
		if parent != null and parent.is_example then return true
		return name == "examples"
	end
src/model/model_examples.nit:74,2--78,4

nitc :: model_examples $ MProperty :: is_example
	redef var is_example is lazy do return intro.is_example
src/model/model_examples.nit:106,2--56