Sha256: 147258a065afaa68231de46a8e836a0ad468acc1767aa1916c3328cc588f1987

Contents?: true

Size: 180 Bytes

Versions: 10

Compression:

Stored size: 180 Bytes

Contents

class NSSize
  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/osx/ns_size.rb
purplish-frame-0.0.11 lib/purplish-frame/non-ui/osx/ns_size.rb
purplish-frame-0.0.10 lib/purplish-frame/non-ui/osx/ns_size.rb
purplish-frame-0.0.9 lib/purplish-frame/non-ui/osx/ns_size.rb
purplish-frame-0.0.8 lib/purplish-frame/non-ui/osx/ns_size.rb
purplish-frame-0.0.7 lib/purplish-frame/non-ui/osx/ns_size.rb
purplish-frame-0.0.6 lib/purplish-frame/non-ui/osx/ns_size.rb
purplish-frame-0.0.5 lib/purplish-frame/non-ui/osx/ns_size.rb
purplish-frame-0.0.4 lib/purplish-frame/non-ui/osx/ns_size.rb
purplish-frame-0.0.3 lib/purplish-frame/non-ui/osx/ns_size.rb