Module: Kernel

Extended by:
Forwardable
Defined in:
lib/highline/import.rb

Overview

require "highline/import" adds shorcut methods to Kernel, making agree(), ask(), choose() and say() globally available. This is handy for quick and dirty input and output. These methods use the HighLine object in the global variable $terminal, which is initialized to used $stdin and $stdout (you are free to change this). Otherwise, these methods areidentical to their HighLine counterparts, see that class for detailed explinations.