Class: Rex::Poly::Machine::Primitive

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/poly/machine/machine.rb

Overview

A primitive is a machine defined permutation which accepts some arguments when it is called.

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ Primitive

Initialize this primitive with its target source procedure and the machine it belongs to.



210
211
212
# File 'lib/rex/poly/machine/machine.rb', line 210

def initialize( source )
  @source = source
end

Instance Method Details

#call(name, machine, *args) ⇒ Object

Call the primitives source procedure, passing in the arguments.



217
218
219
# File 'lib/rex/poly/machine/machine.rb', line 217

def call( name, machine, *args )
  return @source.call( name, machine, *args )
end