Sha256: 92271b1a477cfaff47211d8d74261a0ed5073801d86abef66eee237ff1f53608

Contents?: true

Size: 249 Bytes

Versions: 11

Compression:

Stored size: 249 Bytes

Contents

require 'yaml'
require 'erb'

class Configuration
  CONFIG_PATH = 'config.yml.erb'.freeze

  attr_reader :config

  def initialize
    @config = YAML.load(ERB.new(File.read(CONFIG_PATH)).result).freeze
  end

  def [](key)
    config[key]
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
departure-6.7.0 configuration.rb
departure-6.6.0 configuration.rb
departure-6.5.0 configuration.rb
departure-6.4.0 configuration.rb
departure-6.3.0 configuration.rb
departure-76c9880-6.2.0 configuration.rb
departure-6.2.0 configuration.rb
arrival-0.1.0 configuration.rb
departure-6.1.0 configuration.rb
departure-6.0.0 configuration.rb
departure-5.0.0 configuration.rb