Registry / serialization / om
library3.2.0rbrubygemsunverified

OM (Opinionated Metadata): A library to help you tame sprawling XML schemas like MODS. Wraps Nokogiri documents in objects with miscellaneous helper methods for doing things like retrieve generated xpath queries or look up properties based on a simplified DSL.

gem install om
INSTALL
IMPORT
SIG · OM
O
om
serializationrubyv3.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.

OM
require 'om'

Define a simple XML schema and parse a document.

require 'om' class MySchema < OM::XML::Document set_terminology do |t| t.title(path: '//title') end end doc = MySchema.from_xml('<root><title>Test</title></root>') puts doc.title.first
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
om — gem install om · libregistry