File: virtual_file.rb

package info (click to toggle)
libextlib-ruby 0.9.13-2%2Bdeb6u1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 532 kB
  • ctags: 487
  • sloc: ruby: 7,118; makefile: 3
file content (10 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
require "stringio"

# To use as a parameter to Merb::Template.inline_template
class VirtualFile < StringIO
  attr_accessor :path
  def initialize(string, path)
    super(string)
    @path = path
  end
end