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-4.0.0 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.5.0 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.4.2 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.4.1 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.4.0 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.3.7 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.3.6 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.3.5 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.3.4 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.3.3 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.3.2 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.3.1 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.3.0 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.2.0 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.1.1 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.1.0 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.0.8 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.0.7 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.0.6 lib/cocoa/sugarcube-to_s/calayer.rb
sugarcube-3.0.5 lib/cocoa/sugarcube-to_s/calayer.rb