Sha256: 662004e8c93940e1d9775e4c0f723bd2e42e97e650e5dc5f9066ff3c271e8c67

Contents?: true

Size: 464 Bytes

Versions: 214

Compression:

Stored size: 464 Bytes

Contents

$ ruby example3.rb 2> stderr.log
----- script source ---
_buf = ''; for item in list 
 _buf << '  <p>'; _buf << Erubis::XmlHelper.escape_xml( item ); _buf << '</p>
  <p>'; _buf << ( item ).to_s; _buf << '</p>
  <p>'; $stderr.puts("*** debug: item=#{(item).inspect}"); _buf << '</p>

'; end 
_buf.to_s
----- result ----------
  <p>&lt;aaa&gt;</p>
  <p><aaa></p>
  <p></p>

  <p>b&amp;b</p>
  <p>b&b</p>
  <p></p>

  <p>&quot;ccc&quot;</p>
  <p>"ccc"</p>
  <p></p>

Version data entries

214 entries across 188 versions & 44 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
brakeman-4.3.1 bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
brakeman-4.3.0 bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
brakeman-4.2.1 bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
brakeman-4.2.0 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
brakeman-4.1.1 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
brakeman-4.1.0 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
brakeman-4.0.1 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
brakeman-4.0.0 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/test/data/users-guide/example31.result
brakeman-3.7.2 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example31.result