Registry / utility / attribute-normalizer

attribute-normalizer

JSON →
library1.2.0rbrubygemsunverified

A Ruby gem for normalizing attribute values before they are saved to the database.

gem install attribute_normalizer
INSTALL
IMPORT
SIG · ATTRIBUTE-NORMALIZ
A
attribute-normalizer
utilityrubyv1.2.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.

AttributeNormalizer
require 'attribute_normalizer'

Normalizes an attribute by stripping whitespace before assignment.

require 'attribute_normalizer' class User include AttributeNormalizer attr_accessor :email normalize_attribute :email, with: :strip end user = User.new user.email = ' test@example.com ' user.email # => 'test@example.com'
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
OpenAI (training)
2
Meta
1
Amazon
1
Resources
attribute-normalizer — gem install attribute-normalizer · libregistry