feat(logic): operators sources
This commit is contained in:
parent
0df7090eaa
commit
81f00774af
10 changed files with 48 additions and 0 deletions
|
@ -5,6 +5,10 @@ class Logic::NAryOperator < Logic::Term
|
|||
@operands = operands
|
||||
end
|
||||
|
||||
def sources
|
||||
@operands.flat_map(&:sources)
|
||||
end
|
||||
|
||||
def to_h
|
||||
{
|
||||
"term" => self.class.name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue