Sha256: d427812315334bc6dd564aa6aa2b47929f317ecbf2b10bcaa97e7c75ac5fcfd2
Contents?: true
Size: 655 Bytes
Versions: 2
Compression:
Stored size: 655 Bytes
Contents
require_relative "../metrics/fcp_calculator" require_relative "../readers/rank_file_reader" require_relative "../utils/interactor" module Rankum module Runners class CLISetup include Rankum::Utils::Interactor def self.run context CLISetup.new(context).run end def run execute { context.rank_reader = rank_reader } end private def rank_reader reader = Object::const_get("::Rankum::Readers::#{context.rank_reader}").new reader.add_perfect_rank_path(context.perfect_rank) reader.add_actual_rank_path(context.actual_rank) reader end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rankum-1.1.0 | lib/rankum/runners/cli_setup.rb |
rankum-1.0.0 | lib/rankum/runners/cli_setup.rb |