lib/okcoin.rb in okcoin-0.1.4 vs lib/okcoin.rb in okcoin-0.1.5
- old
+ new
@@ -7,20 +7,20 @@
require "okcoin/http_utils"
require "okcoin/api_define_tool"
require 'okcoin/base'
require "okcoin/client"
+class Object
+ def blank?
+ respond_to?(:empty?) ? !!empty? : !self
+ end
+end
+
module Okcoin
def self.logger
if $logger.nil?
$logger = Logger.new(STDOUT)
$logger.level = Logger::WARN
end
return $logger
end
-
- class Object
- def blank?
- respond_to?(:empty?) ? !!empty? : !self
- end
- end
end