Sha256: c14fab11368d6e9278a068a26a3ca5cbaef1b7992eac118bc09fecad8f694f61

Contents?: true

Size: 544 Bytes

Versions: 4

Compression:

Stored size: 544 Bytes

Contents

ContextR knows two basic reflection mechanisms. One is to query the currently
active layers.

    example do
      ContextR::with_layer :a do
        assert_equal([:a], ContextR::active_layers)
        ContextR::with_layer :b do
          assert_equal([:b, :a], ContextR::active_layers)
        end
        assert_equal([:a], ContextR::active_layers)
      end
    end

The second is to query all layers, that where ever defined.

    example do
      assert(ContextR::layers.include?(:a))
      assert(ContextR::layers.include?(:b))
    end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
contextr-1.0.3 test/meta_api.mkd
contextr-1.0.1 test/meta_api.mkd
contextr-1.0.2 test/meta_api.mkd
contextr-1.0.0 test/meta_api.mkd