Top Level Namespace

Defined Under Namespace

Modules: Hamler

Instance Method Summary collapse

Instance Method Details

#available?(gemname) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
9
10
11
12
# File 'lib/hamler.rb', line 6

def available? gemname
  require gemname
rescue LoadError
  false
else
  true
end