add global variable space

could in the long run move spaces functionality to the class
and since the class is global anyway, wouldn’t need this
This commit is contained in:
Torsten Ruger
2015-11-07 12:19:04 +02:00
parent b1939e9828
commit 9ebe28450b
4 changed files with 16 additions and 2 deletions

View File

@ -136,6 +136,13 @@ module Soml
def reset_regs
@regs.clear
end
# ensure the name given is not space and raise exception otherwise
# return the name for chaining
def no_space name
raise "space is a reserved name" if name == :space
name
end
end
end