Class: Incept::SingleOptionPackage

Inherits:
Object
  • Object
show all
Includes:
Package
Defined in:
lib/incept/single_option_package.rb

Instance Method Summary collapse

Methods included from Package

#command_options, included, #initialize, #render, #template, #template_path

Instance Method Details

#promptObject



6
7
8
# File 'lib/incept/single_option_package.rb', line 6

def prompt
  "Would you like to use #{option_name} for your #{@type} package? (y/n): "
end

#selected?Boolean



14
15
16
# File 'lib/incept/single_option_package.rb', line 14

def selected?
  selection == true
end

#selection=(selection) ⇒ Object



10
11
12
# File 'lib/incept/single_option_package.rb', line 10

def selection=(selection)
  @selection = (selection == 'y')
end