class Karashi::Loader
Public Class Methods
load_stations()
click to toggle source
# File lib/karashi/loader.rb, line 5 def load_stations JSON.parse(File.read(File.join(data_path, "stations.json"))) end
Private Class Methods
data_path()
click to toggle source
# File lib/karashi/loader.rb, line 11 def data_path File.expand_path("../data", __FILE__) end