Module: ConceptQL::Behaviors::Debuggable
- Includes:
- Dottable
- Defined in:
- lib/conceptql/behaviors/debuggable.rb
Defined Under Namespace
Classes: ResultPrinter
Constant Summary
Constants included from Dottable
ConceptQL::Behaviors::Dottable::TYPE_COLORS
Instance Method Summary collapse
Methods included from Dottable
#display_name, #graph_it, #graph_operator, #link_to, #my_count, #my_n, #operator_name, #operator_number, #reset_operator_number, #type_color
Instance Method Details
#print_results(db, dir, watch_ids) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/conceptql/behaviors/debuggable.rb', line 54 def print_results(db, dir, watch_ids) print_prep(db) if respond_to?(:print_prep) kids = upstreams if self.is_a?(ConceptQL::Operators::BinaryOperatorOperator) kids = [left, right] end files = kids.map do |upstream| upstream.print_results(db, dir, watch_ids) end files += types.map do |type| ResultPrinter.new(db, dir, type, watch_ids, self).make_file end end |