mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Define 1.8 marshal hooks in terms of 1.9+ marshal hooks
This commit is contained in:
parent
cbdb46887a
commit
5ba06ff614
@ -28,8 +28,16 @@ class BuildEnvironment
|
|||||||
receiver.instance_eval(&proc)
|
receiver.instance_eval(&proc)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def marshal_dump
|
||||||
|
@settings
|
||||||
|
end
|
||||||
|
|
||||||
|
def marshal_load(data)
|
||||||
|
@settings = data
|
||||||
|
end
|
||||||
|
|
||||||
def _dump(*)
|
def _dump(*)
|
||||||
Marshal.dump(@settings)
|
Marshal.dump(marshal_dump)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self._load(s)
|
def self._load(s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user