Class: CodeNoopInstruction

Inherits:
Instruction show all
Defined in:
lib/instructions/code/code_noop.rb

Overview

does nothing

Instance Attribute Summary

Attributes inherited from Instruction

#context

Instance Method Summary collapse

Methods inherited from Instruction

all_instructions, #go, inherited, #initialize, #needs, #pushes, to_nudgecode

Constructor Details

This class inherits a constructor from Instruction

Instance Method Details

#cleanupObject



15
16
# File 'lib/instructions/code/code_noop.rb', line 15

def cleanup
end

#deriveObject



12
13
# File 'lib/instructions/code/code_noop.rb', line 12

def derive
end

#preconditions?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/instructions/code/code_noop.rb', line 5

def preconditions?
  true
end

#setupObject



9
10
# File 'lib/instructions/code/code_noop.rb', line 9

def setup
end