Method: Res::IR.load

Defined in:
lib/res/ir.rb

.load(file) ⇒ Object



8
9
10
11
12
# File 'lib/res/ir.rb', line 8

def self.load(file)
  f = File.open file
  hash = JSON.load(f, nil, :symbolize_names => true )
  Res::IR.new( hash )
end