Sha256: 026abe79e671730ab53fb46cce12ba30a6ab549ded346543568511a0de8ce5bc

Contents?: true

Size: 508 Bytes

Versions: 13

Compression:

Stored size: 508 Bytes

Contents

# -*- encoding : utf-8 -*-
#
# tagz.rb allows a safer method of mixin which requires any tagz methods to be
# insider a tagz block - tagz generating methods outside a tagz block with
# raise an error if tagz is included this way.  also notice that the error is
# reported from where it was raised - not from the bowels of the the tagz.rb
# lib.
#

require 'tagz'
include Tagz

puts tagz{
 html_{ 'works only in here' }
}

begin
  html_{ 'not out here' }
rescue Object => e
  p :backtrace => e.backtrace
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tagz-9.10.0 samples/e.rb
tagz-9.9.2 samples/e.rb
tagz-9.9.1 samples/e.rb
tagz-9.9.0 samples/e.rb
tagz-9.7.0 samples/e.rb
tagz-9.6.2 samples/e.rb
tagz-9.6.1 samples/e.rb
tagz-9.6.0 samples/e.rb
tagz-9.5.0 samples/e.rb
tagz-9.4.0 samples/e.rb
tagz-9.3.0 samples/e.rb
tagz-9.2.0 samples/e.rb
tagz-9.1.0 samples/e.rb