Sha256: 1ea2d0ac115f54bddb388f94f956efbb463b200fd2de4eb7811376780abc9247

Contents?: true

Size: 858 Bytes

Versions: 3

Compression:

Stored size: 858 Bytes

Contents

class MarvelCharactersCliGemEthel::Characters

  attr_accessor :number, :super_name, :real_name, :character_type, :number_of_powers, :list_of_powers

  @@character_array = []

  def initialize(number = nil, super_name=nil, real_name=nil, character_type=nil, number_of_powers=nil, list_of_powers)
puts "in initialize"
puts super_name
    @number = number
    @@super_name = super_name
    @@real_name = real_name
    @@character_type = character_type
    @@number_of_powers = number_of_powers
    @@list_of_powers = list_of_powers
    @@character_array << self
  end

  def self.get_super_name
    @@super_name
  end

  def self.get_real_name
    @@real_name
  end

  def self.get_character_type
    @@character_type
  end

  def self.get_number_of_powers
    @@number_of_powers
  end

  def self.get_list_of_powers
    @@list_of_powers
  end

end #end Class

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
marvel_characters_cli_gem_ethel-0.1.3 lib/marvel_characters_cli_gem_ethel/characters.rb
marvel_characters_cli_gem_ethel-0.1.2 lib/marvel_characters_cli_gem_ethel/characters.rb
marvel_characters_cli_gem_ethel-0.1.1 lib/marvel_characters_cli_gem_ethel/characters.rb