Sha256: f567f61b4781fb2d9bc9ce066933ca1d0785a2cb48164cd1deab04abaf8f7897

Contents?: true

Size: 285 Bytes

Versions: 13

Compression:

Stored size: 285 Bytes

Contents

module Rabbit
  module SOAP
    NS = "http://rabbit-shockers.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

13 entries across 13 versions & 1 rubygems

Version Path
rabbit-2.0.2 lib/rabbit/soap/base.rb
rabbit-2.0.1 lib/rabbit/soap/base.rb
rabbit-2.0.0 lib/rabbit/soap/base.rb
rabbit-1.0.9 lib/rabbit/soap/base.rb
rabbit-1.0.8 lib/rabbit/soap/base.rb
rabbit-1.0.7 lib/rabbit/soap/base.rb
rabbit-1.0.6 lib/rabbit/soap/base.rb
rabbit-1.0.5 lib/rabbit/soap/base.rb
rabbit-1.0.4 lib/rabbit/soap/base.rb
rabbit-1.0.3 lib/rabbit/soap/base.rb
rabbit-1.0.2 lib/rabbit/soap/base.rb
rabbit-1.0.1 lib/rabbit/soap/base.rb
rabbit-1.0.0 lib/rabbit/soap/base.rb