Sha256: d2723db71bb6c080172248c5ea7e11143ca8ed6f86a121a244360a8815d8143e
Contents?: true
Size: 535 Bytes
Versions: 3
Compression:
Stored size: 535 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' require 'ehbrs/cooking_book/recipe' module Ehbrs module CookingBook class Project enable_simple_cache common_constructor :root do self.root = root.to_pathname end delegate :to_s, to: :root private def recipes_uncached ::Dir.glob(File.join('**', '*.{yml,yaml}'), base: root.to_path).map do |subpath| ::Ehbrs::CookingBook::Recipe.from_file(root.join(subpath)) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ehbrs-tools-0.19.0 | lib/ehbrs/cooking_book/project.rb |
ehbrs-tools-0.18.0 | lib/ehbrs/cooking_book/project.rb |
ehbrs-tools-0.17.0 | lib/ehbrs/cooking_book/project.rb |