class KUtil::ConsoleHelper
Helper methods attached to the namespace for working with Console
Public Instance Methods
file_hyperlink(text, file)
click to toggle source
Convert a hash into a deep OpenStruct or array an array of objects into an array of OpenStruct Generate hyper link encoded string for the console
# File lib/k_util/console_helper.rb, line 14 def file_hyperlink(text, file) "\u001b]8;;file://#{file}\u0007#{text}\u001b]8;;\u0007" end
hyperlink(text, link)
click to toggle source
# File lib/k_util/console_helper.rb, line 18 def hyperlink(text, link) "\u001b]8;;#{link}\u0007#{text}\u001b]8;;\u0007" end