🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

geoffgarside-demolisher

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geoffgarside-demolisher

bundlerRubyGems.org
Version
0.3.3
Version published
Maintainers
1
Created
Source

= demolisher

Works in a similar fashion to Builder but is instead used for extracting information from XML files rather than building them.

== Example

Given the simple XML example file below

Enoch Root 01234 567 8900 enoch@example.com YES Randy Waterhouse 01234 567 8901 randy@example.com NO

we can parse it with

xml = Demolisher.demolish('addressbook.xml') xml.addressbook do xml.person do puts "#{xml.firstname} #{xml.lastname}: #{xml.contact.email}" puts "this person is active" if xml.active? end end

and we should get the result of

Enoch Root: enoch@example.com this person is active Randy Waterhouse: randy@example.com

== Copyright

Copyright (c) 2009 Geoff Garside. See LICENSE for details.

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts