tests/test-html.rb
def loadData
    @courses  = YAML.load_file(File.expand_path('../../_data/courses.yml', __FILE__))
    @modules  = YAML.load_file(File.expand_path('../../_data/modules.yml', __FILE__))
    @settings = YAML.load_file(File.expand_path('../../_data/settings.yml', __FILE__))
  end
# Load the data from the database, and 'attach' it to the class instance
Load the data from the database, and 'attach' it to the class instance
Load the data from the database and ' attach ' it to the class instance
def loadData
    @courses  = YAML.load_file(File.expand_path('../../_data/courses.yml', __FILE__))
    @modules  = YAML.load_file(File.expand_path('../../_data/modules.yml', __FILE__))
    @settings = YAML.load_file(File.expand_path('../../_data/settings.yml', __FILE__))
  end
def loadData @courses = YAML . load_file ( File . expand_path ( '../../_data/courses.yml' , __FILE__ ) ) @modules = YAML . load_file ( File . expand_path ( '../../_data/modules.yml' , __FILE__ ) ) @settings = YAML . load_file ( File . expand_path ( '../../_data/settings.yml' , __FILE__ ) ) end
Load the data from the database, and 'attach' it to the class instance
Load the data from the database and ' attach ' it to the class instance