Class: EacCli::RunnerWithSet
- Inherits:
-
Object
show all
- Defined in:
- lib/eac_cli/runner_with_set.rb,
lib/eac_cli/runner_with_set/from_gems_registry.rb
Defined Under Namespace
Classes: FromGemsRegistry
Class Method Summary
collapse
Instance Method Summary
collapse
Instance Method Details
#add_namespace(namespace) ⇒ Object
11
12
13
14
15
|
# File 'lib/eac_cli/runner_with_set.rb', line 11
def add_namespace(namespace)
namespace = sanitize_namespace(namespace)
namespace_set << namespace unless namespace_set.include?(namespace)
self
end
|
#item_to_module(item) ⇒ Object
17
18
19
|
# File 'lib/eac_cli/runner_with_set.rb', line 17
def item_to_module(item)
item.is_a?(::Module) ? item : key_to_module(item)
end
|
#namespaces ⇒ Object
21
22
23
|
# File 'lib/eac_cli/runner_with_set.rb', line 21
def namespaces
namespace_set.dup
end
|