Class: Libv8::Location

Inherits:
Object
  • Object
show all
Defined in:
ext/libv8/location.rb

Direct Known Subclasses

System, Vendor

Defined Under Namespace

Classes: MkmfContext, System, Vendor

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.load!Object



14
15
16
17
18
# File 'ext/libv8/location.rb', line 14

def self.load!
  File.open(Pathname(__FILE__).dirname.join('.location.yml')) do |f|
    YAML.load f
  end
end

Instance Method Details

#install!Object



7
8
9
10
11
12
# File 'ext/libv8/location.rb', line 7

def install!
  File.open(Pathname(__FILE__).dirname.join('.location.yml'), "w") do |f|
    f.write self.to_yaml
  end
  return 0
end