Module: Babl::Operators::Extends::DSL

Included in:
Template
Defined in:
lib/babl/operators/extends.rb

Instance Method Summary collapse

Instance Method Details

#extends(*args) ⇒ Object



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