Registry / utility / nxt-init

nxt-init

JSON →
library0.1.5rbrubygemsunverified

nxt_init allows you to define an initializer that takes option arguments and defines private readers for those on the fly.

gem install nxt_init
INSTALL
IMPORT
SIG · NXT-INIT
N
nxt-init
utilityrubyv0.1.5
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.

NxtInit
require 'nxt_init'

Define an initializer with automatic private readers

require 'nxt_init' class MyClass include NxtInit nxt_init :name, :age end obj = MyClass.new(name: 'Alice', age: 30) obj.send(:name) # => 'Alice'
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.5latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
nxt-init — gem install nxt-init · libregistry