Class: Haxor::Vm::Subsystem

Inherits:
Object
  • Object
show all
Defined in:
lib/haxor/vm/subsystem.rb

Direct Known Subclasses

Cpu::Core, Mem, Os, Stack

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#vm ⇒ Object

Returns the value of attribute vm.



4
5
6
# File 'lib/haxor/vm/subsystem.rb', line 4

def vm
  @vm
end

Instance Method Details

#register ⇒ Object



6
7
8
# File 'lib/haxor/vm/subsystem.rb', line 6

def register
  # method called after registering to VM
end

#subsystem(id) ⇒ Object

shortcut



11
12
13
# File 'lib/haxor/vm/subsystem.rb', line 11

def subsystem(id)
  @vm.subsystem(id)
end