Module: Kernel
- Extended by:
- Forwardable
- Defined in:
- lib/skylight/probes.rb,
lib/skylight/vendor/cli/highline/import.rb
Overview
require "highline/import"
adds shortcut 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 are identical to their HighLine counterparts, see that class for detailed explanations.
Instance Method Summary collapse
- #require(name) ⇒ Object private
- #require_without_sk ⇒ Object private
Instance Method Details
#require(name) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/skylight/probes.rb', line 80 def require(name) ret = require_without_sk(name) begin Skylight::Probes.require_hook(name) rescue Exception # FIXME: Log these errors end ret end |
#require_without_sk ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
78 |
# File 'lib/skylight/probes.rb', line 78 alias require_without_sk require |