General

Profile

bkatzung (Brian Katzung)

  • Login: bkatzung
  • Email: briank@kappacs.com
  • Registered on: 04/17/2014
  • Last sign in: 06/11/2021

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 0 0

Activity

05/17/2021

07:07 PM Ruby Feature #11747: "bury" feature, similar to 'dig' but opposite
schwad (Nick Schwaderer) wrote in #note-10:
> I think the issues/problems specified in the comments are not present with a Hash-only implementation. :)
> ...
The XKeys gem does not meet your requirements?
bkatzung (Brian Katzung)

07/14/2019

01:29 PM Ruby Feature #13179: Deep Hash Update Method
Gem XKeys, since 2014.
```
require 'xkeys'
h = {}.extend XKeys::Auto # auto Hash/Array
h[:accent, 2, :original] = "the value to set"
# {:accent=>[nil, nil, {:original=>"the value to set"}]}
h = {}.extend XKeys::Hash # Hash only...
bkatzung (Brian Katzung)
02:52 AM Ruby Feature #11747: "bury" feature, similar to 'dig' but opposite
Much of this has been available through my XKeys gem since Q2 2014.
```
data = {}.extend XKeys::Auto # Vs ::Hash, uses arrays for int keys
data[:users, 0, :name] # nil
data[:users, 0, :name, :raise => true] # KeyError
data[:users,...
bkatzung (Brian Katzung)

04/17/2014

11:46 PM Ruby Feature #7240: Inheritable #included/#extended Hooks For Modules
I'm a relatively new Ruby programmer so I may have missed some of the nuances, but I have written http://rubygems.org/gems/extended_include that I *believe* satisfies the original posting requirements.
In a nutshell:
~~~
require '...
bkatzung (Brian Katzung)

Also available in: Atom