Module: RPicSim::Sim::BasicShortcuts

Extended by:
Forwardable
Defined in:
lib/rpicsim/sim.rb

Overview

This module is used in RPicSim's RSpec integration in order to let you call basic methods on the RPicSim::Sim object without having to prefix them with anything.

Constant Summary collapse

ForwardedMethods =

This is the complete list of the basic shortcuts. You can call any of these methods by simply writing its name along with any arguments in an RSpec example.

For example, these shortcuts allow you to just write cycle_count instead of sim.cycle_count.

[
  :cycle_count,
  :eeprom,
  :every_step,
  :goto,
  :label,
  :labels,
  :location_address,
  :new_ram_watcher,
  :pc,
  :pc_description,
  :pin,
  :program_file,
  :program_memory,
  :ram,
  :run_cycles,
  :run_steps,
  :run_subroutine,
  :run_to,
  :run_to_cycle_count,
  :reg,
  :stack_contents,
  :stack_memory,
  :stack_push,
  :stack_trace,
  :step,
  :var,
  :wreg,
  :stack_pointer,
  :stkptr,
]