File: test3.rb

package info (click to toggle)
ruby-gnome2 0.15.0-1.1
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 7,692 kB
  • ctags: 8,558
  • sloc: ansic: 69,912; ruby: 19,511; makefile: 97; xml: 35; sql: 13
file content (11 lines) | stat: -rwxr-xr-x 142 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/ruby -w

require 'gnomevfs'

GnomeVFS.init

p file =  File.expand_path(__FILE__)

GnomeVFS::File.open file do |f|
	puts f.read
end