class Grumlin::AnonymousStep

Constants

SUPPORTED_STEPS

TODO: add other steps

Attributes

args[R]
name[R]
previous_step[R]

Public Class Methods

new(name, *args, previous_step: nil) click to toggle source
# File lib/grumlin/anonymous_step.rb, line 12
def initialize(name, *args, previous_step: nil)
  @name = name
  @previous_step = previous_step
  @args = args
end

Public Instance Methods

bytecode(no_return: false) click to toggle source
# File lib/grumlin/anonymous_step.rb, line 30
def bytecode(no_return: false)
  @bytecode ||= Bytecode.new(self, no_return: no_return)
end
inspect() click to toggle source
# File lib/grumlin/anonymous_step.rb, line 24
def inspect
  bytecode.inspect
end
Also aliased as: to_s
to_s()
Alias for: inspect

Private Instance Methods

add_step(step_name, args) click to toggle source
# File lib/grumlin/anonymous_step.rb, line 36
def add_step(step_name, args)
  self.class.new(step_name, *args, previous_step: self)
end