Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ducasse/containers-propertyenvironment
A kind of dictionary of properties with a lookup.
https://github.com/ducasse/containers-propertyenvironment
collection dictionary lookup pharo prototype-based
Last synced: about 2 months ago
JSON representation
A kind of dictionary of properties with a lookup.
- Host: GitHub
- URL: https://github.com/ducasse/containers-propertyenvironment
- Owner: Ducasse
- Created: 2018-02-03T12:38:49.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-21T11:37:59.000Z (5 months ago)
- Last Synced: 2024-08-03T17:09:26.548Z (5 months ago)
- Topics: collection, dictionary, lookup, pharo, prototype-based
- Language: Smalltalk
- Size: 56.6 KB
- Stars: 2
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Containers-PropertyEnvironment
A dictionary of properties with a lookup in ancestors (also called environment in other languages).![https://github.com/Ducasse/Containers-PropertyEnvironment/workflows/currentStablePharo/badge.svg](https://github.com/Ducasse/Containers-PropertyEnvironment/workflows/currentStablePharo/badge.svg)
![https://github.com/Ducasse/Containers-PropertyEnvironment/workflows/matrix/badge.svg](https://github.com/Ducasse/Containers-PropertyEnvironment/workflows/matrix/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github//Ducasse/Containers-PropertyEnvironment/badge.svg?branch=master)](https://coveralls.io/github//Ducasse/Containers-PropertyEnvironment?branch=master)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/PolyMathOrg/DataFrame/master/LICENSE)## Example
```
CTEnvironmentTest >> testChildrenPropertyAtOverridesParent [
self connectChildParent.
self
assert: (self childEnvironment propertyAt: #P0inParent)
equals: 50.
self
assert: (self childEnvironment propertyAt: #P1inChildren)
equals: 12.
self
assert: (self childEnvironment parent propertyAt: #P1inChildren)
equals: 24
]
```This package is part of the Containers project: This project is to collect, clean,
test and document alternate collection datastructures. Each package is modular so that users
can only load the collection they need without 100 of related collections.## Loading
```
Metacello new
baseline: 'ContainersPropertyEnvironment';
repository: 'github://Ducasse/Containers-PropertyEnvironment';
load.
```## If you want to depend on it
```
spec
baseline: 'ContainersPropertyEnvironment'
with: [ spec repository: 'github://Ducasse/Containers-PropertyEnvironment' ].
```----
The best way to predict the future is to do it!
Less talking more doing. [email protected]