Class: ConceptQL::GraphNodifier::LetOperator
- Inherits:
-
DotOperator
- Object
- Operators::Operator
- DotOperator
- ConceptQL::GraphNodifier::LetOperator
- Defined in:
- lib/conceptql/graph_nodifier.rb
Constant Summary
Constants inherited from DotOperator
Constants included from Behaviors::Dottable
Behaviors::Dottable::TYPE_COLORS
Constants inherited from Operators::Operator
Instance Attribute Summary
Attributes inherited from DotOperator
Attributes inherited from Operators::Operator
#arguments, #options, #upstreams, #values
Instance Method Summary collapse
Methods inherited from DotOperator
Methods included from Behaviors::Dottable
#display_name, #graph_operator, #link_to, #my_count, #my_n, #operator_name, #operator_number, #reset_operator_number, #type_color
Methods inherited from Operators::Operator
#columns, #evaluate, #initialize, #label, #select_it, #set_values, #sql, #stream
Methods included from Metadatable
#allows_many_upstreams, #allows_one_upstream, #argument, #category, #desc, #humanized_class_name, #inherited, #just_class_name, #option, #predominant_types, #preferred_name, #reset_categories, #to_metadata
Constructor Details
This class inherits a constructor from ConceptQL::GraphNodifier::DotOperator
Instance Method Details
#graph_it(g, db) ⇒ Object
134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/conceptql/graph_nodifier.rb', line 134 def graph_it(g, db) cluster_name = "cluster_#{operator_name}" linkable = nil g.send(cluster_name) do |sub| linkable = upstreams.reverse.map do |upstream| upstream.graph_it(sub, db) end.first sub[label: display_name, color: 'black'] end @__graph_operator = linkable end |
#types ⇒ Object
146 147 148 |
# File 'lib/conceptql/graph_nodifier.rb', line 146 def types upstreams.last.types end |