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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user