Sha256: 32f283b2b5e9c48f48321e5584dca4febee93816450d5e0efa3093551cd2ed41
Contents?: true
Size: 468 Bytes
Versions: 87
Compression:
Stored size: 468 Bytes
Contents
# encoding: utf-8 module Backup class Binder ## # Creates a new Backup::Notifier::Binder instance. Loops through the provided # Hash to set instance variables def initialize(key_and_values) key_and_values.each do |key, value| instance_variable_set("@#{ key }", value) end end ## # Returns the binding (needs a wrapper method because #binding is a private method) def get_binding binding end end end
Version data entries
87 entries across 87 versions & 10 rubygems