Class: Cartolabco::BciParse

Inherits:
Object
  • Object
show all
Defined in:
lib/cartolabco.rb

Class Method Summary collapse

Class Method Details

.from_file(file) ⇒ Object



11
12
13
14
# File 'lib/cartolabco.rb', line 11

def self.from_file(file)
  CheckFile.new.check_file?(file)
  BciXls.new(file)
end

.from_path(path) ⇒ Object



6
7
8
9
# File 'lib/cartolabco.rb', line 6

def self.from_path(path)
  CheckFile.new.check_path?(path)
  self.from_file(File.open(path, 'r'))
end