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.9 lib/commandarray.rb
dev_tasks-1.0.8 lib/commandarray.rb
dev_tasks-1.0.7 lib/commandarray.rb
dev_tasks-1.0.6 lib/commandarray.rb
dev_tasks-1.0.5 lib/commandarray.rb
dev_tasks-1.0.4 lib/commandarray.rb
dev_tasks-1.0.3 lib/commandarray.rb
dev_tasks-1.0.2 lib/commandarray.rb
dev_tasks-1.0.1 lib/commandarray.rb
dev_tasks-0.0.167 lib/commandarray.rb
dev_tasks-1.0.0 lib/commandarray.rb
dev_tasks-0.0.166 lib/commandarray.rb
dev_tasks-0.0.164 lib/commandarray.rb