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

Version Path
dev_tasks-1.0.29 lib/commandarray.rb
dev_tasks-1.0.28 lib/commandarray.rb
dev_tasks-1.0.27 lib/commandarray.rb
dev_tasks-1.0.26 lib/commandarray.rb
dev_tasks-1.0.25 lib/commandarray.rb
dev_tasks-1.0.24 lib/commandarray.rb
dev_tasks-1.0.23 lib/commandarray.rb
dev_tasks-1.0.22 lib/commandarray.rb
dev_tasks-1.0.21 lib/commandarray.rb
dev_tasks-1.0.20 lib/commandarray.rb
dev_tasks-1.0.19 lib/commandarray.rb
dev_tasks-1.0.18 lib/commandarray.rb
dev_tasks-1.0.17 lib/commandarray.rb
dev_tasks-1.0.16 lib/commandarray.rb
dev_tasks-1.0.15 lib/commandarray.rb
dev_tasks-1.0.14 lib/commandarray.rb
dev_tasks-1.0.13 lib/commandarray.rb
dev_tasks-1.0.12 lib/commandarray.rb
dev_tasks-1.0.11 lib/commandarray.rb
dev_tasks-1.0.10 lib/commandarray.rb