Class: TextDataTools::DataFileBase

Inherits:
Object
  • Object
show all
Defined in:
lib/text-data-tools.rb

Direct Known Subclasses

Column::DataFile, Named::DataFile

Instance Method Summary collapse

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/text-data-tools.rb', line 9

def exists?
	FileTest.exists?(@filename)
end

#to_sObject



12
13
14
# File 'lib/text-data-tools.rb', line 12

def to_s
	@filename
end

#viewObject



15
16
17
# File 'lib/text-data-tools.rb', line 15

def view
	system ENV['EDITOR'], @filename
end