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.4.9 test/world_mock.rb
y_petri-2.4.8 test/world_mock.rb
y_petri-2.4.6 test/world_mock.rb
y_petri-2.4.4 test/world_mock.rb
y_petri-2.4.3 test/world_mock.rb
y_petri-2.4.2 test/world_mock.rb
y_petri-2.4.0 test/world_mock.rb
y_petri-2.3.12 test/world_mock.rb
y_petri-2.3.11 test/world_mock.rb
y_petri-2.3.10 test/world_mock.rb
y_petri-2.3.9 test/world_mock.rb
y_petri-2.3.8 test/world_mock.rb
y_petri-2.3.6 test/world_mock.rb
y_petri-2.3.5 test/world_mock.rb
y_petri-2.3.4 test/world_mock.rb
y_petri-2.3.3 test/world_mock.rb
y_petri-2.3.2 test/world_mock.rb
y_petri-2.2.4 test/world_mock.rb
y_petri-2.2.3 test/world_mock.rb
y_petri-2.2.2 test/world_mock.rb