class RQRCode::Export::SVG::Edge

Public Instance Methods

end_x() click to toggle source
# File lib/rqrcode/export/svg.rb, line 101
def end_x
  case direction
  when :right then start_x + 1
  when :left then start_x - 1
  else start_x
  end
end
end_y() click to toggle source
# File lib/rqrcode/export/svg.rb, line 109
def end_y
  case direction
  when :down then start_y + 1
  when :up then start_y - 1
  else start_y
  end
end