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

Version Path
backup-remote-0.0.7 lib/backup/binder.rb
backup-remote-0.0.5 lib/backup/binder.rb
backup-remote-0.0.3 lib/backup/binder.rb
backup-remote-0.0.2 lib/backup/binder.rb
backup-4.4.0 lib/backup/binder.rb
backup-4.3.0 lib/backup/binder.rb
backup-4.2.3 lib/backup/binder.rb
backup-4.2.2 lib/backup/binder.rb
backup_zh-4.2.0 lib/backup/binder.rb
backup-4.2.0 lib/backup/binder.rb
backup-4.1.12 lib/backup/binder.rb
backup-4.1.11 lib/backup/binder.rb
backup-ssh-4.1.10 lib/backup/binder.rb
backup-4.1.10 lib/backup/binder.rb
backup-4.1.9 lib/backup/binder.rb
backup-4.1.8 lib/backup/binder.rb
backup-4.1.7 lib/backup/binder.rb
backup-4.1.6 lib/backup/binder.rb
backup-4.1.5 lib/backup/binder.rb
backup-4.1.4 lib/backup/binder.rb