Sha256: 61fc69c5209b97308e359ab192a529de1ab125a2e31eebaed53c45fbd3732966
Contents?: true
Size: 411 Bytes
Versions: 3
Compression:
Stored size: 411 Bytes
Contents
module Erector module Mixin # Executes the block as if it were the content body of a fresh Erector::Inline, # and returns the #to_s value. Since it executes inside the new widget it does not # have access to instance variables of the caller, although it does # have access to bound variables. def erector(options = {}, &block) Erector.inline(&block).to_s(options) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
pivotal-erector-0.7.0 | lib/erector/mixin.rb |
erector-0.7.1 | lib/erector/mixin.rb |
erector-0.7.0 | lib/erector/mixin.rb |