Sha256: eb288e135e727364604595da85d2ae09e107faa9e14195af0b29890f0693df58

Contents?: true

Size: 726 Bytes

Versions: 7

Compression:

Stored size: 726 Bytes

Contents

# encoding: UTF-8

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

7 entries across 7 versions & 1 rubygems

Version Path
shapewear-0.1.4 lib/shapewear.rb
shapewear-0.1.2 lib/shapewear.rb
shapewear-0.1.1 lib/shapewear.rb
shapewear-0.1.0 lib/shapewear.rb
shapewear-0.0.6 lib/shapewear.rb
shapewear-0.0.5 lib/shapewear.rb
shapewear-0.0.4 lib/shapewear.rb