Class: VirtualFile

Inherits:
StringIO show all
Defined in:
lib/gems/extlib-0.9.9/lib/extlib/virtual_file.rb

Overview

To use as a parameter to Merb::Template.inline_template

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string, path) ⇒ VirtualFile

Returns a new instance of VirtualFile.



6
7
8
9
# File 'lib/gems/extlib-0.9.9/lib/extlib/virtual_file.rb', line 6

def initialize(string, path)
  super(string)
  @path = path
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



5
6
7
# File 'lib/gems/extlib-0.9.9/lib/extlib/virtual_file.rb', line 5

def path
  @path
end