Sha256: d92aa475791b2b419407777a8ff27d78f5d1e1887dbb7d07d9a9522200f39168
Contents?: true
Size: 417 Bytes
Versions: 1
Compression:
Stored size: 417 Bytes
Contents
require 'singleton' require 'json' module Populus class Do include Singleton def objects @objects ||= [] end class << self def register_object(o) instance.objects << o puts "Registered: #{o.inspect}" end def accept(input) json = JSON.parse(input) instance.objects.each do |o| o.accept json end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
populus-0.0.1.pre3 | lib/populus/do.rb |