lib/poke_getter/poke.rb
# user will be be prompted to get a list of all available attributes for a poke
user will be be prompted to get a list of all available attributes for a poke
user will be be prompted to get a list of all available attributes for a poke
def create_attributes_list
        self.details.key_list.each do |key| 
            if !key.include? "_"
                self.attributes_list << key
            else
                new_key = key.gsub("\_", " ")
                self.attributes_list << new_key
            end
        end       
    end
def create_attributes_list self . details . key_list . each do | key | if ! key . include? "_" self . attributes_list << key else new_key = key . gsub ( "\_" , " " ) self . attributes_list << new_key end end end
user will be be prompted to get a list of all available attributes for a poke
user will be be prompted to get a list of all available attributes for a poke
# list will be queried by user # lots of gsubing for readability