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.35.1 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.35.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.34.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.33.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.32.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.31.1 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.31.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.30.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.29.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.28.3 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.28.2 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.28.1 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.28.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.27.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.26.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.25.1 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.25.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.24.0 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.23.1 lib/ehbrs/cooking_book/recipe/ingredient.rb
ehbrs-tools-0.23.0 lib/ehbrs/cooking_book/recipe/ingredient.rb