Top Level Namespace

Defined Under Namespace

Modules: AIA, TTY Classes: String

Constant Summary collapse

HOME =

lib/aia/cli.rb

Pathname.new(ENV['HOME'])
MY_NAME =
'aia'

Instance Method Summary collapse

Instance Method Details

#tramp_require(what, &block) ⇒ Object

lib/aia.rb



3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/aia.rb', line 3

def tramp_require(what, &block)
  loaded, require_result = false, nil

  begin
    require_result = require what
    loaded = true
  rescue Exception => ex
    # Do nothing
  end

  yield if loaded and block_given?

  require_result
end