Registry / utility / stringento

stringento

JSON →
library2.1.0rbrubygemsunverified

Takes a templated string and an input object and dynamically resolves the string based on the input.

gem install stringento
INSTALL
IMPORT
SIG · STRINGENTO
S
stringento
utilityrubyv2.1.0
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.

Stringento
require 'stringento'

Resolve a templated string with an object

require 'stringento' template = '{last_name}, {first_name}' obj = OpenStruct.new(first_name: 'John', last_name: 'Doe') Stringento.new(template).resolve(obj) # => "Doe, John"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

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