Sha256: ddc48fe99f6b4c0723b414616dbecd9600fe71f2f741606ef75c5e456c36748a

Contents?: true

Size: 213 Bytes

Versions: 6

Compression:

Stored size: 213 Bytes

Contents

module XeroGateway
  def self.debug=(val)
    @debug = !!val
  end
  def self.debugging?
    !!@debug
  end

  def self.log(message)
    if debugging?
      puts "XeroGateway" + " | " + message
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
xero_gateway-float-2.1.7 lib/xero_gateway/xero_gateway_debug.rb
xero_gateway-float-2.1.6 lib/xero_gateway/xero_gateway_debug.rb
xero_gateway-float-2.1.4 lib/xero_gateway/xero_gateway_debug.rb
xero_gateway-float-2.1.3 lib/xero_gateway/xero_gateway_debug.rb
xero_gateway-float-2.1.1 lib/xero_gateway/xero_gateway_debug.rb
xero_gateway-float-2.0.18 lib/xero_gateway/xero_gateway_debug.rb