lib/commandarray.rb in dev_tasks-1.0.29 vs lib/commandarray.rb in dev_tasks-1.0.30
- old
+ new
@@ -1,21 +1,21 @@
-require_relative './command.rb'
+#require_relative './command.rb'
class CommandArray < Array
- def update
- end
+ #def update
+ #end
def add command
self << command if(!include?(command))
end
- def execute
- i=0
- while i < self.length
- self[i]=Command.new(self[i]) if(self[i].is_a?(String))
- self[i].execute
- i=i+1
- end
- end
+# def execute
+# i=0
+# while i < self.length
+# self[i]=Command.new(self[i]) if(self[i].is_a?(String))
+# self[i].execute
+# i=i+1
+# end
+# end
end
\ No newline at end of file