A host of methods useful inside the context of a view including print style methods that output content rather that printing to $stdout.
# File lib/ramaze/view/tagz.rb, line 27 27: def <<(s) 28: tagz << s; self 29: end
# File lib/ramaze/view/tagz.rb, line 63 63: def __(*a) 64: concat eol 65: end
# File lib/ramaze/view/tagz.rb, line 31 31: def concat(*a) 32: a.each{|s| tagz << s}; self 33: end
# File lib/ramaze/view/tagz.rb, line 55 55: def eol 56: if response.content_type =~ %text/plain|o 57: "\n" 58: else 59: "<br />" 60: end 61: end
# File lib/ramaze/view/tagz.rb, line 43 43: def p(*a) 44: a.each do |elem| 45: tagz << "#{ Rack::Utils.escape_html elem.inspect }#{ eol }" 46: end 47: end
# File lib/ramaze/view/tagz.rb, line 49 49: def pp(*a) 50: a.each do |elem| 51: tagz << "#{ Rack::Utils.escape_html PP.pp(elem, '') }#{ eol }" 52: end 53: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.