Sha256: 0646fe1b85480823ac36ad3894559cc92ccef1ce8b3ce0571d187b67ccdbe1a1
Contents?: true
Size: 321 Bytes
Versions: 33
Compression:
Stored size: 321 Bytes
Contents
require_relative './command.rb' class CommandArray < Array 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 end
Version data entries
33 entries across 33 versions & 1 rubygems