Creates a new instance of the Backup::Template class and optionally takes an argument that can be either a binding object, a Hash or nil
# File lib/backup/template.rb, line 13 def initialize(object = nil) if object.is_a?(Binding) @binding = object elsif object.is_a?(Hash) @binding = Backup::Binder.new(object).get_binding else @binding = nil end end
Generated with the Darkfish Rdoc Generator 2.