The "sliding-line method" is the fact that if a (linear) objective function is optimised at two points on the same line segment that forms part of a boundary of a feasible region, then the objective function is optimised at every point on that line segment.
Some important consequences of this:
1. If an objective function is optimised at every point on a line segment that forms part of a boundary of a feasible region, then its gradient is equal to the gradient of that line segment.
2. If the gradient of an objective function is not equal to the gradient of any line segment that forms the boundary of a feasible region, then the objective function is optimised at a "corner point" (if it is optimised at all).
So you don't literally need to take out your ruler and slide it along the page, you just need to apply these facts.
See 2016 Exam 1, question 5 for an example.