diff options
| author | Markus Reiter | 2016-09-24 13:52:43 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-24 16:00:58 +0200 |
| commit | b86c8efb79b3ed835d552c4d7416640ef10caf21 (patch) | |
| tree | 7e1edc8a8f339e4d2781f43576d40c9c79aebcdc /Library/Homebrew/cask/lib/hbc/options.rb | |
| parent | 687f0fcf721c8e36f32570ed72d0988a6eaf986f (diff) | |
| download | brew-b86c8efb79b3ed835d552c4d7416640ef10caf21.tar.bz2 | |
Cask: Use nested classes and modules.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/options.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/options.rb | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/options.rb b/Library/Homebrew/cask/lib/hbc/options.rb index c0e3e2ed0..e9ba54ff6 100644 --- a/Library/Homebrew/cask/lib/hbc/options.rb +++ b/Library/Homebrew/cask/lib/hbc/options.rb @@ -1,37 +1,39 @@ -module Hbc::Options - def self.included(base) - base.extend(ClassMethods) - end +module Hbc + module Options + def self.included(base) + base.extend(ClassMethods) + end - module ClassMethods - attr_writer :no_binaries + module ClassMethods + attr_writer :no_binaries - def no_binaries - @no_binaries ||= false - end + def no_binaries + @no_binaries ||= false + end - attr_writer :debug + attr_writer :debug - def debug - @debug ||= false - end + def debug + @debug ||= false + end - attr_writer :verbose + attr_writer :verbose - def verbose - @verbose ||= false - end + def verbose + @verbose ||= false + end - attr_writer :cleanup_outdated + attr_writer :cleanup_outdated - def cleanup_outdated - @cleanup_outdated ||= false - end + def cleanup_outdated + @cleanup_outdated ||= false + end - attr_writer :help + attr_writer :help - def help - @help ||= false + def help + @help ||= false + end end end end |
