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
Unfortunately, we can’t use prepend here, in part because RubyGems changes require with an alias.
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.
165 166 167 168 169 170 171 |
# File 'lib/skylight/probes.rb', line 165 def require(name) require_without_sk(name).tap do Skylight::Probes.require_hook(name) rescue Exception => e warn("[SKYLIGHT] Rescued exception in require hook", e) end 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.
Unfortunately, we can’t use prepend here, in part because RubyGems changes require with an alias
163 |
# File 'lib/skylight/probes.rb', line 163 alias require_without_sk require |