Added #link into text.rb + tests

Added a #link method to text.rb since @sandal said in #689 (last comment) that a method was needed.