Sha256: caabdfb32b2906622fec1139b5896a0130d500552c2831e1e17e94706f4a3026
Contents?: true
Size: 475 Bytes
Versions: 33
Compression:
Stored size: 475 Bytes
Contents
class CALayer def sugarcube_to_s(options={}) if options[:inner].is_a? Hash inner = '' options[:inner].each do |key, value| inner += ', ' if inner.length > 0 inner += "#{key}: #{value.inspect}" end else inner = options[:inner] end "#{self.class.to_s}(##{self.object_id.to_s(16)}, [[#{frame.origin.x}, #{frame.origin.y}], [#{frame.size.width}, #{frame.size.height}]])" end def to_s sugarcube_to_s end end
Version data entries
33 entries across 33 versions & 1 rubygems