Class: Rankum::Readers::RankFileReader

Inherits:
Object
  • Object
show all
Defined in:
lib/rankum/readers/rank_file_reader.rb

Instance Method Summary collapse

Constructor Details

#initializeRankFileReader

Returns a new instance of RankFileReader


5
6
7
8
# File 'lib/rankum/readers/rank_file_reader.rb', line 5

def initialize
  @perfect_rank = []
  @actual_rank = []
end

Instance Method Details

#actual_rankObject


24
25
26
# File 'lib/rankum/readers/rank_file_reader.rb', line 24

def actual_rank
  @actual_rank
end

#add_actual_rank_path(path) ⇒ Object


15
16
17
18
# File 'lib/rankum/readers/rank_file_reader.rb', line 15

def add_actual_rank_path path
  @actual_rank = [] unless @actual_rank.empty?
  @actual_rank = to_array(path)
end

#add_perfect_rank_path(path) ⇒ Object


10
11
12
13
# File 'lib/rankum/readers/rank_file_reader.rb', line 10

def add_perfect_rank_path path
  @perfect_rank = [] unless @perfect_rank.empty?
  @perfect_rank = to_array(path)
end

#perfect_rankObject


20
21
22
# File 'lib/rankum/readers/rank_file_reader.rb', line 20

def perfect_rank
  @perfect_rank
end