dynany
Version, currently 0.1.15 versions
- 0.2.2latestMay 16, 2019
- 0.2.1not indexedMay 16, 2019
- 0.2.0not indexedMay 16, 2019
- 0.1.1not indexedMay 16, 2019
- 0.1.0not indexedMay 16, 2019
github.com/j8r/dynany
Dynamic JSON/YAML/CON mapping manipulation - extends Any
Nothing has been indexed for 0.1.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
dynany:
github: j8r/dynany
version: ~> 0.1.1Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.1. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
Dynany
Dynamic JSON/YAML/CON mapping manipulation - extends Any
Installation
Add the dependency to your shard.yml:
dependencies:
dynany:
github: j8r/dynany
Usage
This shard monkey patch JSON::Any, YAML::Any and CON::Any to extend them by adding this following methods, which are equivalent for those fround in Hash and Array.
The main difference is the argument, which accept an Enumerable which represents a path in the document.
The available methods are:
#[](path : Enunerable)
#[]?(path : Enumerable
#[]=(path : Enumerable)
#delete(path : Enumerable)
Example
require "dynany/json"
json = JSON.parse %({"hash": {"array": ["first", "second"]}})
json[["hash", "array", 1]] # => "second"
json.delete ["hash", "array", 1] # => {"hash" => {"array" => ["first"]}}
json[["hash", "array", 1]]? # => nil
License
Copyright (c) 2018-2019 Julien Reichardt - ISC License
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.1- Tagged
- May 16, 2019
- Commit
3de0de955306- Indexed
- not yet
Dependents
Repository
github.com/j8r/dynany
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 25, 2026
- Synced
- Sep 25, 2026
- Versions
- 5