lib/megahal/megahal.rb
def become(name=:default, bar = nil)
    raise ArgumentError, "no such personality" unless @@personalities.key?(name)
    clear
    bar.total = @@personalities[name].length unless bar.nil?
    _train(@@personalities[name], bar)
  end
# Loads the specified personality. Will raise an exception if the personality
# parameter isn't one of those returned by #list. Note that this will clear
# MegaHAL's brain first.
#
# @param [Symbol] name The personality to be loaded.
# @param [ProgressBar] bar An optional progress bar instance.
Loads the specified personality. Will raise an exception if the personality
parameter isn't one of those returned by #list. Note that this will clear
MegaHAL's brain first.
Loads the specified personality . Will raise an exception if the personality parameter isn ' t one of those returned by #list . Note that this will clear MegaHAL ' s brain first .
def become(name=:default, bar = nil)
    raise ArgumentError, "no such personality" unless @@personalities.key?(name)
    clear
    bar.total = @@personalities[name].length unless bar.nil?
    _train(@@personalities[name], bar)
  end
def become ( name = :default , bar = nil ) raise ArgumentError , "no such personality" unless @@personalities . key? ( name ) clear bar . total = @@personalities [ name ] . length unless bar . nil? _train ( @@personalities [ name ] , bar ) end
Loads the specified personality.
Loads the specified personality .
name
bar
bar An optional progress bar instance.
bar An optional progress bar instance .