6 7 8 9 10 11 12 13 14 15 16 17
# File 'lib/babl/operators/extends.rb', line 6 def extends(*args) source { merge( *args.map { |arg| case arg when Template, ::Hash, ::NilClass then arg else partial(arg) end } ) } end