Sha256: adf9d96caaaf5184f5d88d010f600b2ff6e7fcdb65f5ef3d997aacc4d4772e23

Contents?: true

Size: 237 Bytes

Versions: 2

Compression:

Stored size: 237 Bytes

Contents

class Kernel
  def pp(*attrs)
    NSLog([*attrs].map(&:inspect).join(' ') + ' ' + self.class.to_s)
  end

  def class_name_without_kvo
    self.class.name.gsub(/^NSKVONotifying_/, '')
  end

  def weak_ref
    WeakRef.new(self)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
motion-prime-0.4.5 motion-prime/core_ext/kernel.rb
motion-prime-0.4.4 motion-prime/core_ext/kernel.rb