Method: YankInstruction#derive

Defined in:
lib/instructions/infrastructure.rb

#deriveObject



320
321
322
323
324
325
326
327
328
329
330
# File 'lib/instructions/infrastructure.rb', line 320

def derive
  max = @context.stacks[@target_stack].depth-1
  case 
  when @from_where < 0
    @which = max
  when @from_where > max
    @which = 0
  else
    @which = max - @from_where 
  end
end