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-ssh-4.4.5 lib/backup/binder.rb
backup-remote-0.0.19 lib/backup/binder.rb
cm-backup-1.0.0 lib/backup/binder.rb
backup-ssh-4.4.4 lib/backup/binder.rb
backup-ssh-4.4.3 lib/backup/binder.rb
backup-4.4.1 lib/backup/binder.rb
backup-remote-0.0.18 lib/backup/binder.rb
backup-remote-0.0.17 lib/backup/binder.rb
backup-remote-0.0.16 lib/backup/binder.rb
backup-remote-0.0.15 lib/backup/binder.rb
backup-ssh-4.4.2 lib/backup/binder.rb
backup-ssh-4.4.1 lib/backup/binder.rb
backup-remote-0.0.14 lib/backup/binder.rb
backup-remote-0.0.13 lib/backup/binder.rb
backup-remote-0.0.12 lib/backup/binder.rb
backup-remote-0.0.11 lib/backup/binder.rb
backup-ssh-4.4.0 lib/backup/binder.rb
backup-remote-0.0.10 lib/backup/binder.rb
backup-remote-0.0.9 lib/backup/binder.rb
backup-remote-0.0.8 lib/backup/binder.rb