Sha256: c830d0e3c0b5213aaef1e35ed1674667ded4030007f465bc6e614966e1fae45b
Contents?: true
Size: 223 Bytes
Versions: 3
Compression:
Stored size: 223 Bytes
Contents
require 'erb' module Foo def foo 6 end end template = ERB.new %q( The value of x is <%= x %> The method foo returns <%= foo %> ) x = 42 b = binding eval 'include Foo', b template.extend(Foo) puts template.result(b)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jarrett-quarto-1.2.0 | test.rb |
jarrett-quarto-1.2.1 | test.rb |
jarrett-quarto-1.3.0 | test.rb |