Module: Opal::UseGem
Instance Method Summary collapse
-
#use_gem(gem_name, include_dependencies = true) ⇒ Object
Adds the "require_paths" (usually
lib/
) of gem with the given name to Opal paths.
Instance Method Details
#use_gem(gem_name, include_dependencies = true) ⇒ Object
Adds the "require_paths" (usually lib/
) of gem with the given name to
Opal paths. By default will include the "require_paths" from all the
dependent gems.
43 44 45 |
# File 'opal/lib/opal/paths.rb', line 43 def use_gem(gem_name, include_dependencies = true) append_paths(*require_paths_for_gem(gem_name, include_dependencies)) end |