Module: AnyStyle::Utils

Included in:
AnyStyle
Defined in:
lib/anystyle/utils.rb

Instance Method Summary collapse

Instance Method Details

#maybe_require(mod) ⇒ Object


3
4
5
6
7
8
# File 'lib/anystyle/utils.rb', line 3

def maybe_require(mod)
  require mod
  yield if block_given?
rescue LoadError
  # ignore
end