Class: Contestify::Judge::Local

Inherits:
Object
  • Object
show all
Defined in:
lib/contestify/judges/local/local.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(problems_path) ⇒ Local

Returns a new instance of Local.



8
9
10
11
12
13
14
# File 'lib/contestify/judges/local/local.rb', line 8

def initialize(problems_path)
  @problems_path = problems_path
  @working_root_path = File.join(Dir.pwd, "contestify")
  FileUtils.mkdir_p @working_root_path
  copy_problems
  @problems_paths = Contestify::Local::Configuration.configure!(@working_root_path)
end

Instance Attribute Details

#problems_pathObject

Returns the value of attribute problems_path.



6
7
8
# File 'lib/contestify/judges/local/local.rb', line 6

def problems_path
  @problems_path
end

#problems_pathsObject

Returns the value of attribute problems_paths.



6
7
8
# File 'lib/contestify/judges/local/local.rb', line 6

def problems_paths
  @problems_paths
end

#working_root_pathObject

Returns the value of attribute working_root_path.



6
7
8
# File 'lib/contestify/judges/local/local.rb', line 6

def working_root_path
  @working_root_path
end