Sha256: 92f67e758c274ed72411dfcd890ad9f6b13fc2b4864c4a43f9262d6be8794c97

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

require 'json'
require 'ice_nine/core_ext/object'

module PeopleStats
  def people_stats
    path = Rails.root.join('spec', 'fixtures', 'files', 'people_stats.json')
    @people_stats ||= File.open(path).read.deep_freeze
  end

  def people_stats_json
    @people_stats_json ||= JSON.parse(people_stats).deep_freeze
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shrek-0.2.2 examples/tree_pruning/spec/support/people_stats.rb