Sha256: 9c906f9c01b0e05615e278a7c27df636ca160e13fe9d9e749745c60034e858cc
Contents?: true
Size: 393 Bytes
Versions: 22
Compression:
Stored size: 393 Bytes
Contents
module Bourdain module Helpers class Locals def initialize locals locals.each do |name, value| instance_variable_set "@#{name}", value metaclass = class << self ; self ; end metaclass.send(:define_method, name) do instance_variable_get("@#{name}") end end end def bind ; binding end end end end
Version data entries
22 entries across 22 versions & 1 rubygems