Sha256: 31f36efcd096a8b958bfcf4196bf74ef3051a38b04b78259361d99875bc3687d
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
module Pebbles module LoveLive require 'singleton' require 'yaml' class Core include Singleton def initialize initialize_member initialize_story end def members @@members end def story @@story end def method_missing(method, *args) @@members[method] end private def initialize_member yaml = YAML.load_file(File.join(CONFIG_PATH, 'members.yml')) @@members = {} yaml.each do |k, v| @@members[k] = Member.new(k, v) end end def initialize_story @@story = Story.new end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pebbles-lovelive-0.2.0 | lib/pebbles/lovelive/core.rb |