Sha256: ba33a7f5aa2e4e9fcb00410a5b2211565856f381988cbb53c3c79ff00b26bdf6

Contents?: true

Size: 222 Bytes

Versions: 22

Compression:

Stored size: 222 Bytes

Contents

require 'json'

module Bourdain
  module Helpers
    class Config
      attr_reader :items
      def initialize path
        @items = JSON::parse File.read(path), symbolize_names: true rescue {}
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
bourdain-1.2.14 lib/bourdain/helpers/config.rb
bourdain-1.2.13 lib/bourdain/helpers/config.rb