Sha256: 54b3c16fdcd01897b859c3e3a8859c896dc8311b1ea563c27a765211c567b1a8
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
# frozen_string_literal: true 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) # rubocop:disable Naming/AccessorMethodName def get_binding binding end # rubocop:enable Naming/AccessorMethodName end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
backupii-0.1.0.pre.alpha.2 | lib/backup/binder.rb |
backupii-0.1.0.pre.alpha.1 | lib/backup/binder.rb |