Module: LabInterface::ClassMethods

Defined in:
lib/ruby_astm/lab_interface.rb

Overview

CLASS METHODS

Instance Method Summary collapse

Instance Method Details

#default_mappingsObject



71
72
73
# File 'lib/ruby_astm/lab_interface.rb', line 71

def default_mappings
  File.join root_path,"mappings.json"
end

#log(message) ⇒ Object



62
63
64
65
# File 'lib/ruby_astm/lab_interface.rb', line 62

def log(message)
  puts "" + message
  $redis.zadd("ruby_astm_log",Time.now.to_i,message)
end

#root_pathObject



67
68
69
# File 'lib/ruby_astm/lab_interface.rb', line 67

def root_path
  File.dirname __dir__
end