Skip to content

Instantly share code, notes, and snippets.

@audiolion
Created June 11, 2020 18:30
Show Gist options
  • Save audiolion/bdf23201b45273459b9b252dabee8a06 to your computer and use it in GitHub Desktop.
Save audiolion/bdf23201b45273459b9b252dabee8a06 to your computer and use it in GitHub Desktop.
require "json"
module Foo
@events = JSON.parse(File.read(File.expand_path('./events.json', File.dirname(__FILE__))))
end
# I guess you cant do static on a module, is there another way without adding a class?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment