class Opine::Rect
Attributes
height[RW]
width[RW]
x[RW]
y[RW]
Public Class Methods
new(options)
click to toggle source
# File lib/opine/rect.rb, line 4 def initialize options options.each do |key,value| send("#{key}=".to_sym,value) end end
Public Instance Methods
==(other)
click to toggle source
# File lib/opine/rect.rb, line 14 def ==(other) x == other.x && y == other.y && width = other.width && height == other.height end
native()
click to toggle source
# File lib/opine/rect.rb, line 10 def native Cocoa::NSRect.new(x: x, y: y, width: width, height: height) end