Registry / utility / attributes

attributes

JSON →
library5.0.1rbrubygemsunverified

A Ruby gem for defining typed attributes with default values and coercion.

gem install attributes
INSTALL
IMPORT
SIG · ATTRIBUTES
A
attributes
utilityrubyv5.0.1
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.

Attributes
require 'attributes'

Define and use typed attributes with defaults.

require 'attributes' class Person include Attributes attribute :name, String, default: 'Unknown' end p = Person.new(name: 'Alice') puts p.name
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.0.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
2
Meta
1
Resources
attributes — gem install attributes · libregistry