Sha256: 2ddc804c1840d8ae019bcd497a8655dd151c7e159d9a07c4ec8702ad893a56ad

Contents?: true

Size: 180 Bytes

Versions: 10

Compression:

Stored size: 180 Bytes

Contents

class CGSize
  include PurplishFrame::CanScaleWidthHeight

  def self.to_native_size(anObject)
    anObject.to_size
  end

  def square?
    width == height && width > 0
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
purplish-frame-0.0.12 lib/purplish-frame/non-ui/cg_size.rb
purplish-frame-0.0.11 lib/purplish-frame/non-ui/cg_size.rb
purplish-frame-0.0.10 lib/purplish-frame/non-ui/cg_size.rb
purplish-frame-0.0.9 lib/purplish-frame/non-ui/cg_size.rb
purplish-frame-0.0.8 lib/purplish-frame/non-ui/cg_size.rb
purplish-frame-0.0.7 lib/purplish-frame/non-ui/cg_size.rb
purplish-frame-0.0.6 lib/purplish-frame/non-ui/cg_size.rb
purplish-frame-0.0.5 lib/purplish-frame/non-ui/cg_size.rb
purplish-frame-0.0.4 lib/purplish-frame/non-ui/cg_size.rb
purplish-frame-0.0.3 lib/purplish-frame/non-ui/cg_size.rb