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

Version Path
gyoku-1.4.0 lib/gyoku.rb
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/gyoku-1.3.1/lib/gyoku.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/gyoku-1.3.1/lib/gyoku.rb