Class: Preseason::Config::WhiskeyDisk
- Inherits:
-
Object
- Object
- Preseason::Config::WhiskeyDisk
- Includes:
- Preseason::Config
- Defined in:
- lib/preseason/config/whiskey_disk.rb
Instance Attribute Summary collapse
-
#use ⇒ Object
Returns the value of attribute use.
Instance Method Summary collapse
Methods included from Preseason::Colorize
Methods included from GeneratorContext
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Preseason::GeneratorContext
Instance Attribute Details
#use ⇒ Object
Returns the value of attribute use.
6 7 8 |
# File 'lib/preseason/config/whiskey_disk.rb', line 6 def use @use end |
Instance Method Details
#ask_user ⇒ Object
8 9 10 |
# File 'lib/preseason/config/whiskey_disk.rb', line 8 def ask_user self.use = yes? "Would you like to include whiskey_disk? [y/n]" end |
#use? ⇒ Boolean
12 13 14 |
# File 'lib/preseason/config/whiskey_disk.rb', line 12 def use? use end |