Registry / utility / key-struct

key-struct

JSON →
library0.4.2rbrubygemsunverified

Defines KeyStruct analogous to Struct, but constructor takes keyword arguments.

gem install key_struct
INSTALL
IMPORT
SIG · KEY-STRUCT
K
key-struct
utilityrubyv0.4.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.

KeyStruct
require 'key_struct'

Creates a struct with keyword arguments.

require 'key_struct' Point = KeyStruct.new(:x, :y) point = Point.new(x: 1, y: 2) puts point.x
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
key-struct — gem install key-struct · libregistry