Method: Stool::BaseObj.fromFile

Defined in:
lib/stool/Core/BaseObj.rb

.fromFile(path) ⇒ Object



15
16
17
18
19
20
# File 'lib/stool/Core/BaseObj.rb', line 15

def self.fromFile(path)
  if File.exist?(path)
    content = File.open(path, 'r:utf-8', &:read)
    eval(content,nil,path.to_s)
  end
end