module Lino::Appliables

Public Instance Methods

with_appliable(appliable) click to toggle source
# File lib/lino/appliables.rb, line 9
def with_appliable(appliable)
  return self if nil?(appliable)

  appliable.apply(self)
end
with_appliables(appliables) click to toggle source
# File lib/lino/appliables.rb, line 15
def with_appliables(appliables)
  return self if nil_or_empty?(appliables)

  appliables.inject(self) do |s, appliable|
    s.with_appliable(appliable)
  end
end