lib/vedeu/interfaces/clear.rb in vedeu-0.8.8 vs lib/vedeu/interfaces/clear.rb in vedeu-0.8.9
- old
+ new
@@ -160,12 +160,13 @@
# @return [Array<Array<Vedeu::Cells::Char>>]
def output
Vedeu.timer("Clearing #{clearing}: '#{name}'") do
@clear ||= Array.new(height) do |iy|
Array.new(width) do |ix|
+ position = Vedeu::Geometries::Position.new((y + iy), (x + ix))
Vedeu::Cells::Clear.new(colour: colour,
name: name,
- position: [y + iy, x + ix])
+ position: position)
end
end
end
end