lib/grumlin/anonymous_step.rb in grumlin-0.14.4 vs lib/grumlin/anonymous_step.rb in grumlin-0.14.5
- old
+ new
@@ -3,14 +3,14 @@
module Grumlin
class AnonymousStep
attr_reader :name, :previous_step, :configuration_steps
# TODO: add other steps
- SUPPORTED_STEPS = %i[E V addE addV and as both bothE by choose coalesce count dedup drop elementMap emit fold from
- group groupCount has hasId hasLabel hasNot id in inE inV is label limit not or order out outE
- path project property range repeat sack select sideEffect skip sum tail to unfold union until
- valueMap values where with].freeze
+ SUPPORTED_STEPS = %i[E V addE addV aggregate and as both bothE by choose coalesce count dedup drop elementMap emit
+ fold from group groupCount has hasId hasLabel hasNot id in inE inV is label limit not or order
+ out outE path project property range repeat sack select sideEffect skip sum tail to unfold
+ union until valueMap values where with].freeze
def initialize(name, *args, configuration_steps: [], previous_step: nil, **params)
@name = name
@previous_step = previous_step
@args = args
@@ -39,9 +39,9 @@
def bytecode(no_return: false)
@bytecode ||= Bytecode.new(self, no_return: no_return)
end
def args
- [*@args, @params.any? ? arg.params : nil].compact
+ [*@args, @params.any? ? @params : nil].compact
end
end
end