░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/vendor/bundle/ruby/3.1.0/gems/dig_rb-1.0.1/lib/dig_rb
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: hash.rb
unless Hash.instance_methods.include?(:dig) Hash.class_eval do # Retrieves the value object corresponding to the each key objects repeatedly. # # h = { foo: {bar: {baz: 1}}} # h.dig(:foo, :bar, :baz) #=> 1 # h.dig(:foo, :zot) #=> nil def dig(key, *args) value = self[key] return value if args.length == 0 || value.nil? DigRb.guard_dig(value) value.dig(*args) end end end
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 array.rb
RB
241 B
2023-09-24 03:47
EDIT
📄 hash.rb
RB
465 B
2023-09-24 03:47
EDIT
📄 ostruct.rb
RB
822 B
2023-09-24 03:47
EDIT
📄 struct.rb
RB
793 B
2023-09-24 03:47
EDIT
📄 version.rb
RB
37 B
2023-09-24 03:47
EDIT