Method: Configure::Questioner#initialize
- Defined in:
- lib/ngi/configure.rb
#initialize(args) {|_self| ... } ⇒ Questioner
Returns a new instance of Questioner.
227 228 229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/ngi/configure.rb', line 227 def initialize(args) @languages = args[:languages] language_types = @languages.select do |type, languages| type if languages.size > 1 end @lang_types = language_types.collect { |type, _| type }.flatten @components_hash = args[:components_hash] @components = args[:components] @config = args[:config] @configurable = args[:configurable] yield(self) if block_given? end |