Module: Zorglub::Engines::File
- Defined in:
- lib/zorglub/engines/file.rb
Class Method Summary collapse
Class Method Details
.proc(path, obj) ⇒ Object
9 10 11 12 13 |
# File 'lib/zorglub/engines/file.rb', line 9 def self.proc path,obj content = ::File.open(path,'r'){|f| f.read } ext = path.sub /.*\.(.+)$/,'\1' return content, "text/#{ext}" end |