mirror of
https://github.com/PeterCamilleri/fOOrth
synced 2024-11-16 07:47:56 +01:00
Smell cleanup, UG updated for stubs.
This commit is contained in:
parent
bf0883c277
commit
bf61389513
2 changed files with 1 additions and 6 deletions
Binary file not shown.
|
@ -4,7 +4,7 @@
|
|||
module XfOOrth
|
||||
VirtualMachine.create_shared_method('stub:', VmSpec, [:immediate], &lambda {|vm|
|
||||
name = vm.parser.get_word()
|
||||
vm.process_text("vm.create_word_stub(#{name.inspect}); ")
|
||||
vm.process_text("vm.class.create_shared_method(#{name.inspect}, VmSpec, [:stub]); ")
|
||||
})
|
||||
|
||||
VirtualMachine.create_shared_method('.stub:', VmSpec, [:immediate], &lambda {|vm|
|
||||
|
@ -20,11 +20,6 @@ module XfOOrth
|
|||
# Stub support methods in the VirtualMachine class.
|
||||
class VirtualMachine
|
||||
|
||||
#Create a word stub
|
||||
def create_word_stub(name)
|
||||
VirtualMachine.create_shared_method(name, VmSpec, [:stub])
|
||||
end
|
||||
|
||||
#Create a shared method stub
|
||||
def create_shared_stub(name)
|
||||
unless (target = self.pop).is_a?(Class)
|
||||
|
|
Loading…
Reference in a new issue