Sha256: dade992034e525918ece805b8b9fd34fb13920d8a52711e2cafa6f9e37a50c40

Contents?: true

Size: 282 Bytes

Versions: 7

Compression:

Stored size: 282 Bytes

Contents

module Rabbit
  module SOAP
    NS = "http://www.cozmixng.org/ns/rabbit/0.0.1/"

    module_function
    def element_name(name)
      case name
      when /[?!]$/
        name[0..-2]
      when /[=]$/
        "set_#{name[0..-2]}"
      else
        name
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rabbit-0.9.3 lib/rabbit/soap/base.rb
rabbit-0.9.2 lib/rabbit/soap/base.rb
rabbit-0.9.1 lib/rabbit/soap/base.rb
rabbit-0.9.0 lib/rabbit/soap/base.rb
rabbit-0.6.4 lib/rabbit/soap/base.rb
rabbit-0.6.3 lib/rabbit/soap/base.rb
rabbit-0.6.2 lib/rabbit/soap/base.rb