module Firstjob class Career CAREERS = YAML.load_file("lib/data/careers.yaml")["careers"].symbolize_keys! # Poor's man all def self.all CAREERS end # Poor's man find def self.find(id) CAREERS[id] end end end