Registry / utility / hashable

hashable

JSON →
library0.1.2rbrubygemsunverified

Recursively convert your objects into nested hashes.

gem install hashable
INSTALL
IMPORT
SIG · HASHABLE
H
hashable
utilityrubyv0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Hashable
require 'hashable'

Convert an object to a nested hash

require 'hashable' class Person include Hashable attr_accessor :name, :age def initialize(name, age) @name = name @age = age end end person = Person.new('Alice', 30) puts person.to_h.inspect
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
hashable — gem install hashable · libregistry