
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
NavigableHash was built as lightweight and quick way to navigate through a hash or array object using the familiar ruby dot notation. See 'Usage' below for examples. Keys as strings or symbols don't matter, its all included.
Add this line to your application's Gemfile:
gem 'navigable_hash'
And then execute:
$ bundle
Or install it yourself as:
$ gem install navigable_hash
(Check out the rspec tests for coverage examples)
Most basic usage:
test_hash = { :example_key => 'example value' }
navigable_hash = NavigableHash.new(test_hash)
navigable_hash.example_key
# => 'example_value'
More:
new_hash = { :second_key => { :inner_key => true }, :array_item => [{}, "string", :symbol] }
navigable_hash = NavigableHash.new(new_hash)
navigable_hash.second_key.inner_key
# => true
navigable_hash.array_item.last
# => :symbol
Call Agnostic (key as a string, symbol or dot notation):
new_hash = { "first_key" => "value 1" }
navigable_hash = NavigableHash.new(new_hash)
navigable_hash.first_key
navigable_hash[:first_key]
navigable_hash["first_key"]
# => "value 1"
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.