Registry / utility / options

options

JSON →
library2.3.2rbrubygemsunverified

Provides a clean way to parse options from *args in Ruby methods.

gem install options
INSTALL
IMPORT
SIG · OPTIONS
O
options
utilityrubyv2.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.

Options
require 'options'

Parses keyword arguments from a splat using Options.

require 'options' def greet(*args) opts = Options.new(args) puts "Hello, #{opts.name || 'World'}!" end greet(name: 'Alice')
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.3.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
options — gem install options · libregistry