Sha256: 3a1b8c11759ef877d3cfe62ab956868685a49f6b5792955d71a203d5efcf7b0f

Contents?: true

Size: 282 Bytes

Versions: 24

Compression:

Stored size: 282 Bytes

Contents

class Rad::Conveyors  
  def initialize
    @hash = {}
  end
  
  def [] conveyor_name
    @hash[conveyor_name.to_s] ||= Conveyor.new
  end
  
  def size; @hash.size end
  
  def method_missing m, &block
    if block
      block.call self[m]
    else
      self[m]
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rad_core-0.2.6 lib/rad/conveyors/_conveyors.rb
rad_core-0.2.5 lib/rad/conveyors/_conveyors.rb
rad_core-0.2.4 lib/rad/conveyors/_conveyors.rb
rad_core-0.2.3 lib/rad/conveyors/_conveyors.rb
rad_core-0.2.2 lib/rad/conveyors/_conveyors.rb
rad_core-0.2.1 lib/rad/conveyors/_conveyors.rb
rad_core-0.2.0 lib/rad/conveyors/_conveyors.rb
rad_core-0.0.30 lib/rad/conveyors/_conveyors.rb
rad_core-0.0.29 lib/rad/conveyors/_conveyors.rb
rad_core-0.0.28 lib/rad/conveyors/_conveyors.rb
rad_core-0.0.27 lib/rad/conveyors/_conveyors.rb
rad_core-0.0.26 lib/rad/conveyors/_conveyors.rb
rad_core-0.0.25 lib/rad/conveyors/_conveyors.rb
rad_core-0.0.24 lib/rad/conveyors/_conveyors.rb
rad_core-0.0.23 lib/rad/conveyors/_conveyors.rb
rad_core-0.0.22 lib/rad/conveyors/_conveyors.rb
rad_core-0.0.21 lib/rad/conveyors/_conveyors.rb
rad_core-0.0.20 lib/rad/conveyors/_conveyors.rb
rad_core-0.0.19 lib/rad/conveyors/_conveyors.rb
rad_core-0.0.18 lib/rad/conveyors/_conveyors.rb