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.6.3 lib/bourdain/helpers/config.rb
bourdain-1.6.2 lib/bourdain/helpers/config.rb
bourdain-1.6.1 lib/bourdain/helpers/config.rb
bourdain-1.6.0 lib/bourdain/helpers/config.rb
bourdain-1.5.1 lib/bourdain/helpers/config.rb
bourdain-1.5.0 lib/bourdain/helpers/config.rb
bourdain-1.4.1 lib/bourdain/helpers/config.rb
bourdain-1.4.0 lib/bourdain/helpers/config.rb
bourdain-1.3.3 lib/bourdain/helpers/config.rb
bourdain-1.3.2 lib/bourdain/helpers/config.rb
bourdain-1.3.1 lib/bourdain/helpers/config.rb
bourdain-1.3.0 lib/bourdain/helpers/config.rb
bourdain-1.2.22 lib/bourdain/helpers/config.rb
bourdain-1.2.21 lib/bourdain/helpers/config.rb
bourdain-1.2.20 lib/bourdain/helpers/config.rb
bourdain-1.2.19 lib/bourdain/helpers/config.rb
bourdain-1.2.18 lib/bourdain/helpers/config.rb
bourdain-1.2.17 lib/bourdain/helpers/config.rb
bourdain-1.2.16 lib/bourdain/helpers/config.rb
bourdain-1.2.15 lib/bourdain/helpers/config.rb