Sha256: 3bc50bb1456247ef7c3eda10d9ba010dd0b6038e49bdeb59d25040077ae832fd
Contents?: true
Size: 524 Bytes
Versions: 7
Compression:
Stored size: 524 Bytes
Contents
# frozen_string_literal: true require_relative 'validation' module Lino module Builders module Mixins module Appliables include Validation def with_appliable(appliable) return self if appliable.nil? appliable.apply(self) end def with_appliables(appliables) return self if nil_or_empty?(appliables) appliables.inject(self) do |s, appliable| s.with_appliable(appliable) end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems