Sha256: 908526c87921c434db3ebf6ce5ec468ea438cefe4980274f6d7d750384cad45f

Contents?: true

Size: 441 Bytes

Versions: 26

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'
require 'ehbrs/cooking_book/recipe/measure'

module Ehbrs
  module CookingBook
    class Recipe
      class Ingredient
        class << self
          def build(label, value)
            new(label, ::Ehbrs::CookingBook::Recipe::Measure.build(value))
          end
        end

        enable_simple_cache
        common_constructor :name, :measure
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ehbrs-tools-0.22.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.21.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.20.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.19.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.18.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.17.0 lib/ehbrs/cooking_book/recipe/ingredient.rb