class Dotenv::Diff
def initialize(a: snapshot, b: ENV, &block)
- Yield: - a block to execute before recording the final state
Parameters:
-
b
(Hash
) -- the final state, defaults to the current ENV -
a
(Hash
) -- the initial state, defaults to a snapshot of current ENV
def initialize(a: snapshot, b: ENV, &block) @a, @b = a, b block&.call self ensure @b = snapshot if block end