Method: Builder.load_file

Defined in:
lib/rubidity/builder.rb

.load_file(path) ⇒ Object

auto-add extension and import path for now - why? why not?



7
8
9
10
11
12
# File 'lib/rubidity/builder.rb', line 7

def self.load_file( path )
  code = File.open( "contracts/#{path}.rb", 'r:utf-8' ) { |f| f.read }
  basename = File.basename( path )
  lineno   = 1
  load( code, basename, lineno )
end