nitc :: MEntity :: is_example
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.
# 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
redef var is_example is lazy do return intro.is_example
src/model/model_examples.nit:92,2--56
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
redef var is_example is lazy do return intro.is_example
src/model/model_examples.nit:106,2--56