Registry / utility / acts-as-hashable

acts-as-hashable

JSON →
library1.3.2rbrubygemsunverified

Adds factory class methods to objects for instantiation from hashes.

gem install acts_as_hashable
INSTALL
IMPORT
SIG · ACTS-AS-HASHABLE
A
acts-as-hashable
utilityrubyv1.3.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.

ActsAsHashable
require 'acts_as_hashable'

Use from_hash to create an object from a hash.

require 'acts_as_hashable' class User acts_as_hashable attr_accessor :name, :email end user = User.from_hash(name: 'Alice', email: 'alice@example.com') puts user.name
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
31
Meta
1
OpenAI (training)
1
Resources
acts-as-hashable — gem install acts-as-hashable · libregistry