class Percept::Line
Attributes
end_x[RW]
end_y[RW]
row[RW]
start_x[RW]
start_y[RW]
Public Class Methods
new(params)
click to toggle source
# File lib/percept/line.rb, line 6 def initialize(params) self.start_x = params.fetch(:start_x) self.end_x = params.fetch(:end_x) self.start_y = params.fetch(:start_y) self.end_y = params.fetch(:end_y) { start_y } self.row = params.fetch(:row) end
Public Instance Methods
pixels()
click to toggle source
# File lib/percept/line.rb, line 14 def pixels row end