lib/vfs/entries/file.rb in vfs-0.3.8 vs lib/vfs/entries/file.rb in vfs-0.3.9
- old
+ new
@@ -188,10 +188,16 @@
#
def render *args
require 'tilt'
args.unshift Object.new if args.size == 1 and args.first.is_a?(Hash)
- Tilt::ERBTemplate.new(path).render *args
+
+ template = Tilt.new path
+ template.render *args
+ end
+
+ def size
+ get :size
end
def basename
::File.basename(name, File.extname(name))
end
\ No newline at end of file