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.


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

def initialize( source )
  @source = source
end

Instance Method Details

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

Call the primitives source procedure, passing in the arguments.


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

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