Cross Reference: parsing_callback.rb
xref
: /
ontohub
/
lib
/
parsing_callback.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
module
ParsingCallback
def
self.determine
_for
(
ontology
)
logic_name
=
ontology.logic.to
_s
self.constants.each
do
|
constant
|
moddule
=
self.const
_get
(
constant
)
if
moddule.class
==
Module
if
moddule.defined
_for
?
(
logic_name
)
return
moddule.const
_get
(:
Callback
)
.
new
(
ontology
)
end
end
end
GenericCallback.new
(
ontology
)
end
end