Sha256: 64f56b1262301bd18492561ac47da33d4c1e16d2668cf22164b75162ee0769f1
Contents?: true
Size: 538 Bytes
Versions: 11
Compression:
Stored size: 538 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom')) module Fathom module TickMethods def initialize(*agents) super(*agents) end attr_reader :ticks_designed, :ticks_executed def process(n) @ticks_designed = n @ticks_executed = 0 n.times do self.tick(self) @ticks_executed += 1 end end end end if __FILE__ == $0 include Fathom # TODO: Is there anything you want to do to run this file on its own? # TicksSimulation.new end
Version data entries
11 entries across 11 versions & 1 rubygems