lib/shapewear.rb in shapewear-0.0.1 vs lib/shapewear.rb in shapewear-0.0.2
- old
+ new
@@ -1,11 +1,19 @@
require 'nokogiri'
require 'shapewear/version'
require 'shapewear/dsl'
+require 'shapewear/wsdl'
+module Shapewear
+ def self.included(receiver)
+ receiver.extend(Shapewear::DSL)
+ receiver.extend(Shapewear::WSDL)
+ end
+end
+
# defines String.camelize if it is not defined by, e.g. Rails
-unless String.respond_to? :camelize
+unless ''.respond_to? :camelize
class String
def camelize
self.split('_').map(&:capitalize).join
end
end
\ No newline at end of file