checker_app.rb
# id is the position in the item list (starting from 1)
# stable_id is the persistent task identifier (e.g., a subject ID)
id is the position in the item list (starting from 1)
stable_id is the persistent task identifier
id is the position in the item list ( starting from 1 ) stable_id is the persistent task identifier
def save_to_file(type, contents)
    basedir = File.join("tasks", @set.id.to_s)
    Dir.mkdir(basedir) unless File.exists? basedir
    File.open(File.join(basedir, "#{ type }-#{ @stable_id }.txt"), "w") do |f|
      f.puts contents
    end
  end
def save_to_file ( type , contents ) basedir = File . join ( "tasks" , @set . id . to_s ) Dir . mkdir ( basedir ) unless File . exists? basedir File . open ( File . join ( basedir , "#{ type }-#{ @stable_id }.txt" ) , "w" ) do | f | f . puts contents end end
id is the position in the item list (starting from 1)
stable_id is the persistent task identifier (e.g., a subject ID)
id is the position in the item list ( starting from 1 ) stable_id is the persistent task identifier ( e . g . a subject ID )
type
<not_specific>
contents
<not_specific>