Sha256: 86124e72d5b7553a7826ee54b496a24da76f3babd2d31681a3eb325ecf6bafc1
Contents?: true
Size: 334 Bytes
Versions: 58
Compression:
Stored size: 334 Bytes
Contents
require "gyoku/version" require "gyoku/hash" module Gyoku # Converts a given Hash +key+ with +options+ into an XML tag. def self.xml_tag(key, options = {}) XMLKey.create(key, options) end # Translates a given +hash+ with +options+ to XML. def self.xml(hash, options = {}) Hash.to_xml hash.dup, options end end
Version data entries
58 entries across 50 versions & 6 rubygems