Sha256: f3e9077251b54c0a5647e4c9dd65473cc270f58a97ae826dbbdeb5a1fdf309a8
Contents?: true
Size: 432 Bytes
Versions: 39
Compression:
Stored size: 432 Bytes
Contents
class Puppeteer::ElementHandle < Puppeteer::JSHandle # A class to represent (x, y)-coordinates # supporting + and / operators. class Point def initialize(x:, y:) @x = x @y = y end def +(other) Point.new( x: @x + other.x, y: @y + other.y, ) end def /(num) Point.new( x: @x / num, y: @y / num, ) end attr_reader :x, :y end end
Version data entries
39 entries across 39 versions & 1 rubygems