Sha256: 36e3dedb9bbb4015eccef9c38a41afd28d708936641c18ce0ba5984efac093ec
Contents?: true
Size: 503 Bytes
Versions: 5
Compression:
Stored size: 503 Bytes
Contents
module Awestruct module Extensions class Pipeline attr_reader :extensions attr_reader :helpers def initialize(&block) @extensions = [] @helpers = [] instance_eval &block if block end def extension(ext) @extensions << ext end def helper(helper) @helpers << helper end def execute(site) extensions.each do |ext| ext.execute( site ) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems