diff options
| author | Markus Reiter | 2016-10-04 10:31:49 +0200 |
|---|---|---|
| committer | GitHub | 2016-10-04 10:31:49 +0200 |
| commit | cafe1497808ef1ddb002061665ad606aa2340d10 (patch) | |
| tree | 3020d12117601676f9afdf2cdefa86785546705b /Library/Homebrew/cmd/commands.rb | |
| parent | 881fdcd25ebe6b91691295034a8d9fa2dfc6f158 (diff) | |
| parent | 9690c94f9dcc78d2a00093e21be412c70776541c (diff) | |
| download | brew-cafe1497808ef1ddb002061665ad606aa2340d10.tar.bz2 | |
Merge pull request #1145 from reitermarkus/module-function
Use `module_function` for `Homebrew` module.
Diffstat (limited to 'Library/Homebrew/cmd/commands.rb')
| -rw-r--r-- | Library/Homebrew/cmd/commands.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/commands.rb b/Library/Homebrew/cmd/commands.rb index 4fad764ca..f6445d560 100644 --- a/Library/Homebrew/cmd/commands.rb +++ b/Library/Homebrew/cmd/commands.rb @@ -5,6 +5,8 @@ #: With `--include-aliases`, the aliases of internal commands will be included. module Homebrew + module_function + def commands if ARGV.include? "--quiet" cmds = internal_commands + external_commands @@ -48,8 +50,6 @@ module Homebrew end.sort end - private - def find_internal_commands(directory) directory.children.each_with_object([]) do |f, cmds| cmds << f.basename.to_s.sub(/\.(?:rb|sh)$/, "") if f.file? |
