lib/character_classes/character_class.rb
def assign_weapon(weapon)
    case weapon
    when :bare_hands  then BareHands.new
    when :sword       then Sword.new
    when :staff       then Staff.new
    when :axe         then Axe.new
    when :spear       then Spear.new
    when :short_sword then ShortSword.new
    end
  end
# rubocop:disable Metrics/CyclomaticComplexity
# Only for initialization process
disable Metrics/CyclomaticComplexity
Only for initialization process
disable Metrics / CyclomaticComplexity Only for initialization process
def assign_weapon(weapon)
    case weapon
    when :bare_hands  then BareHands.new
    when :sword       then Sword.new
    when :staff       then Staff.new
    when :axe         then Axe.new
    when :spear       then Spear.new
    when :short_sword then ShortSword.new
    end
  end
def assign_weapon ( weapon ) case weapon when :bare_hands then BareHands . new when :sword then Sword . new when :staff then Staff . new when :axe then Axe . new when :spear then Spear . new when :short_sword then ShortSword . new end end
rubocop:disable Metrics/CyclomaticComplexity
Only for initialization process
rubocop : disable Metrics / CyclomaticComplexity Only for initialization process
weapon