Class: LibSqreen::Location

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

Direct Known Subclasses

Stub, Vendor

Defined Under Namespace

Classes: MkmfContext, Stub, Vendor

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.load!Object



17
18
19
20
21
# File 'ext/libsqreen/location.rb', line 17

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

Instance Method Details

#install!Object



10
11
12
13
14
15
# File 'ext/libsqreen/location.rb', line 10

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