module Binding::Slicer::Mixin
Public Instance Methods
slice(*symbols, **additionals)
click to toggle source
# File lib/binding/slicer.rb, line 4 def slice(*symbols, **additionals) hash = {} symbols.each do |name| hash[name] = local_variable_get(name) end hash.merge(additionals) end
Also aliased as: "[]"