Sha256: a87bdfc87c865b90ea4b82b030c1edb278a9cf057a1d9df6c920e731e14300bd

Contents?: true

Size: 707 Bytes

Versions: 1

Compression:

Stored size: 707 Bytes

Contents

require 'nokogiri'

require 'shapewear/version'
require 'shapewear/logging'
require 'shapewear/dsl'
require 'shapewear/wsdl'
require 'shapewear/request'

module Shapewear
  def self.included(receiver)
    receiver.extend(Shapewear::Logging)
    receiver.extend(Shapewear::DSL)
    receiver.extend(Shapewear::WSDL)
    receiver.extend(Shapewear::Request)

    class << receiver
      def method_added(m)
        # automatically creates an operation for each method added
        operation m
      end
    end
  end
end

# defines String.camelize if it is not defined by, e.g. Rails
unless ''.respond_to? :camelize
  class String
    def camelize
      self.split('_').map(&:capitalize).join
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shapewear-0.0.3 lib/shapewear.rb