Sha256: 4debb4227fdb0a247495f98179123d8082daed9bbea771fd55e914cac8343c3e

Contents?: true

Size: 272 Bytes

Versions: 56

Compression:

Stored size: 272 Bytes

Contents

WORLD_MOCK = -> do
  w = YPetri::World.new
  [ w.Place, w.Transition, w.Net ].tap do |p, t, _|
    def p.nw( n, *args, &block )
      new( *args ).tap { |i| i.name = n }
    end

    def t.nw( n, *args, &block )
      new( *args ).tap { |i| i.name = n }
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
y_petri-2.2.1 test/world_mock.rb
y_petri-2.2.0 test/world_mock.rb
y_petri-2.1.51 test/world_mock.rb
y_petri-2.1.50 test/world_mock.rb
y_petri-2.1.49 test/world_mock.rb
y_petri-2.1.48 test/world_mock.rb
y_petri-2.1.47 test/world_mock.rb
y_petri-2.1.46 test/world_mock.rb
y_petri-2.1.45 test/world_mock.rb
y_petri-2.1.44 test/world_mock.rb
y_petri-2.1.42 test/world_mock.rb
y_petri-2.1.40 test/world_mock.rb
y_petri-2.1.39 test/world_mock.rb
y_petri-2.1.37 test/world_mock.rb
y_petri-2.1.36 test/world_mock.rb
y_petri-2.1.35 test/world_mock.rb
y_petri-2.1.34 test/world_mock.rb
y_petri-2.1.33 test/world_mock.rb
y_petri-2.1.31 test/world_mock.rb
y_petri-2.1.30 test/world_mock.rb