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

Version Path
sugarcube-3.0.4 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.0.3 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.0.2 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.0.1 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.0.0 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-2.12.3 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-2.12.2 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-2.12.1 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-2.12.0 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-2.11.1 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-2.11.0 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-2.10.0 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-2.9.1 lib/cocoa/sugarcube-to_s/calayer.rb