Class: Preseason::Config::Bitters
- Inherits:
-
Object
- Object
- Preseason::Config::Bitters
- Includes:
- Preseason::Config
- Defined in:
- lib/preseason/config/bitters.rb
Instance Attribute Summary collapse
-
#library ⇒ Object
Returns the value of attribute library.
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
#library ⇒ Object
Returns the value of attribute library.
6 7 8 |
# File 'lib/preseason/config/bitters.rb', line 6 def library @library end |
Instance Method Details
#ask_user ⇒ Object
8 9 10 11 12 |
# File 'lib/preseason/config/bitters.rb', line 8 def ask_user if yes? "Would you like to use Bourbon's predefined styles: Bitters? [y/n]" self.library = :bitters end end |
#bitters? ⇒ Boolean
14 15 16 |
# File 'lib/preseason/config/bitters.rb', line 14 def bitters? library == :bitters end |