Sha256: 57a70b9dd65693ce0ac54c90cea3aaa7ffc6efafd3e46f3d478b04508b85b6ae
Contents?: true
Size: 899 Bytes
Versions: 2
Compression:
Stored size: 899 Bytes
Contents
require 'fileutils' require 'ruby_learner/methods.rb' class TypingPractice def initialize(workshop_dir: String) @workshop_dir = workshop_dir end def prac_sequence(mode_dir: String) FileUtils.cp("#{mode_dir}/lib/workplace.rb", "#{@workshop_dir}/lib/workplace.rb") FileUtils.cp("#{mode_dir}/lib/sentence.org", "#{@workshop_dir}/lib/sentence.org") FileUtils.cp("#{mode_dir}/lib/answer.rb", "#{@workshop_dir}/lib/answer.rb") FileUtils.cp("#{mode_dir}/spec/workplace_spec.rb", "#{@workshop_dir}/spec/workplace_spec.rb") system "cd #{@workshop_dir}/lib && emacs -nw -q -l ~/ruby_learner/workshop/emacs.d/init.el sentence.org workplace.rb" start_time = Time.now typing_discriminant(dir: @workshop_dir) elapsed_time = time_check(start_time: start_time) p "#{elapsed_time} sec" # mk_training_data(elapsed_time: elapsed_time, prac_dir: @prac_dir) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_learner-1.0.1 | lib/ruby_learner/typing_practice.rb |
ruby_learner-1.0.0 | lib/ruby_learner/typing_practice.rb |