Sha256: b64f0698ad6383f8fc35d15c121e8ff01fa06b6a4408d2e15d60eee5402e8d8f
Contents?: true
Size: 395 Bytes
Versions: 87
Compression:
Stored size: 395 Bytes
Contents
require 'cli/kit' module CLI module Kit module Autocall def autocall(const, &block) @autocalls ||= {} @autocalls[const] = block end def const_missing(const) block = begin @autocalls.fetch(const) rescue KeyError return super end const_set(const, block.call) end end end end
Version data entries
87 entries across 87 versions & 1 rubygems