module Augmented::Objects::Tackable
Public Instance Methods
tack(**functions)
click to toggle source
# File lib/augmented/objects/tackable.rb, line 6 def tack **functions functions.each_pair do |name, thing| function = case thing when Proc, Method, UnboundMethod then thing else proc{ thing } end self.define_singleton_method name, function end self end