Top Level Namespace

Defined Under Namespace

Modules: Daru, GnuplotRB Classes: Array, String

Instance Method Summary collapse

Instance Method Details

#require_if_available(name) ⇒ Boolean

Require gem if it's available in current gemspace.


11
12
13
14
15
# File 'lib/gnuplotrb.rb', line 11

def require_if_available(name)
  require name
rescue LoadError
  false
end