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.1.26 test/world_mock.rb
y_petri-2.1.25 test/world_mock.rb
y_petri-2.1.24 test/world_mock.rb
y_petri-2.1.22 test/world_mock.rb
y_petri-2.1.21 test/world_mock.rb
y_petri-2.1.20 test/world_mock.rb
y_petri-2.1.18 test/world_mock.rb
y_petri-2.1.17 test/world_mock.rb
y_petri-2.1.16 test/world_mock.rb
y_petri-2.1.12 test/world_mock.rb
y_petri-2.1.11 test/world_mock.rb
y_petri-2.1.10 test/world_mock.rb
y_petri-2.1.9 test/world_mock.rb
y_petri-2.1.7 test/world_mock.rb
y_petri-2.1.6 test/world_mock.rb
y_petri-2.1.3 test/world_mock.rb