Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
Wrap text
Report abuse
#!/usr/bin/env ruby require 'erb' template = %q{ Test Test: <%= timeout %> }.gsub(/^ /,'') puts ERB.new(template, 0, "%<>").result
aj@junglist /tmp$ ./tset.rb (erb):3: undefined local variable or method `timeout' for main:Object (NameError) from /usr/lib/ruby/1.8/erb.rb:741:in `value' from /usr/lib/ruby/1.8/erb.rb:741:in `result' from ./tset.rb:10
Pasted June 18, 200812:55AM EDT
by fujin
Channel #puppet on irc.freenode.com
Embed
paste again
Ads from Ruby Row