module Stevenson module Input class Url < Text include Base def collect! # Ask the user the question and apply the appropriate options answer = ask(@prompt) do |q| q.default = default q.validate = /https?:\/\/[\S]+/ q.limit = @limit if @limit end # Return the user's answer answer.to_s end end end end