Registry / utility / attribute-struct

attribute-struct

JSON →
library0.5.1rbrubygemsunverified

Attribute structures provide a simple way to define typed attributes with default values.

gem install attribute_struct
INSTALL
IMPORT
SIG · ATTRIBUTE-STRUCT
A
attribute-struct
utilityrubyv0.5.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.

AttributeStruct
require 'attribute_struct'

Define and instantiate an attribute struct.

require 'attribute_struct' Person = AttributeStruct.new(:name, :age) p = Person.new(name: 'Alice', age: 30) puts p.name
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
2
Resources
attribute-struct — gem install attribute-struct · libregistry