Sha256: c2fa99634e9a2baf3d36854c87653938fdc51146842c3338a95751f0d475dd19
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
class Kernel def pp(*attrs) NSLog([*attrs].map(&:inspect).join(' ')) end def class_name_without_kvo self.class.name.gsub(/^NSKVONotifying_/, '') end def weak_ref WeakRef.new(self) end def strong_ref self end def clear_instance_variables(options = {}) ivars = self.instance_variables.clone ivars.each do |ivar| next if Array.wrap(options[:except]).include?(ivar[1..-1]) self.instance_variable_set(ivar, nil) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-prime-0.5.2 | motion-prime/core_ext/kernel.rb |