Module: Lino::Appliables
Instance Method Summary
collapse
Methods included from Utilities
#empty?, #join_with, #map_and_join, #nil?, #nil_or_empty?, #quote_with
Instance Method Details
#with_appliable(appliable) ⇒ Object
9
10
11
12
13
|
# File 'lib/lino/appliables.rb', line 9
def with_appliable(appliable)
return self if nil?(appliable)
appliable.apply(self)
end
|
#with_appliables(appliables) ⇒ Object
15
16
17
18
19
20
21
|
# 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
|