Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Task #2 - OOP usage fixed (remastered in MVCstyle).Fixed comment/newl…
Browse files Browse the repository at this point in the history
…ine missings
  • Loading branch information
Evenstein committed Jul 24, 2018
1 parent 772fac0 commit 6c02f0f
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 60 deletions.
1 change: 1 addition & 0 deletions 2269/2/controller/rappers_parser.rb
@@ -1,3 +1,4 @@
# This module creates a Rappers and makes it initiating
module RappersParser
def get_rappers_list(destination)
hash = {}
Expand Down
2 changes: 1 addition & 1 deletion 2269/2/helpers/top_bad_helper.rb
Expand Up @@ -29,4 +29,4 @@ def add_bad_word_count
def drop_words_round_count
@words_per_round = 0
end
end
end
2 changes: 1 addition & 1 deletion 2269/2/helpers/top_word_helper.rb
Expand Up @@ -14,4 +14,4 @@ def read_from_file(file_name, marker)
def increase_word_counter(key)
@word_count[key] += 1
end
end
end
2 changes: 1 addition & 1 deletion 2269/2/model/battles_info.rb
Expand Up @@ -18,4 +18,4 @@ def set_result(total, bad, round)
def file_source_info(file)
@battles_history << file
end
end
end
54 changes: 0 additions & 54 deletions 2269/2/top_bad.rb

This file was deleted.

2 changes: 1 addition & 1 deletion 2269/2/view/pluralizer.rb
Expand Up @@ -19,4 +19,4 @@ def self.plural_word(value, end_phrase)
value.to_s.ljust(5) + ' ' +
RuPropisju.choose_plural(value, 'слово', 'слова', 'слов').ljust(5) + end_phrase
end
end
end
2 changes: 1 addition & 1 deletion 2269/2/view/top_bad_view.rb
Expand Up @@ -10,4 +10,4 @@ def self.write_to_console_helper(rapper, average, result)
result + WordPluralizeHelper.plural_word_dec(average, ' на баттл | ') +
WordPluralizeHelper.plural_word(rapper.words_info_during_battles.words_round, ' в раунде |')
end
end
end
2 changes: 1 addition & 1 deletion 2269/2/view/top_word_view.rb
Expand Up @@ -8,4 +8,4 @@ def self.write_to_console_rappers(rappers, rapper_name)
puts "\nРэпер #{rapper_name} не судился. Осуждены следующие:\n\n"
rappers.each { |_key, value| puts value.name }
end
end
end

0 comments on commit 6c02f0f

Please sign in to comment.