Sha256: 8237b5f2e920ad63a8cb92139e9d0466f540748d4838fc8e6ebcfcdd102076d5

Contents?: true

Size: 417 Bytes

Versions: 2

Compression:

Stored size: 417 Bytes

Contents

module Pebbles
  module LoveLive
    require 'singleton'
    require 'yaml'

    class Core
      include Singleton

      def initialize
        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 method_missing(method, *args)
        @@members[method]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pebbles-lovelive-0.0.2 lib/pebbles/lovelive/core.rb
pebbles-lovelive-0.0.1 lib/pebbles/lovelive/core.rb