remove unused variable class

This commit is contained in:
Torsten Ruger
2016-12-15 19:43:53 +02:00
parent dc56274940
commit 886220d388
3 changed files with 0 additions and 21 deletions

View File

@ -1,19 +0,0 @@
module Parfait
class Variable < Object
def initialize type , name , value = nil
raise "not type #{type}(#{type.class})" unless Register.machine.space.get_class_by_name(type)
self.value_type , self.name , self.value = type , name , value
self.value = 0 if self.value_type == :Integer and value == nil
raise "must give name for variable" unless name
end
attributes [:value_type , :name, :value]
def to_s
"Variable(#{self.value_type} ,#{self.name})"
end
def inspect
to_s
end
end
end