Sha256: d4114a0aa78624b683df8b8139d86cff506e5e60bc2dbe5b448714baf2407034
Contents?: true
Size: 377 Bytes
Versions: 28
Compression:
Stored size: 377 Bytes
Contents
# pluginの定数未定義を握りつぶす class Module module ExtModule def const_missing(id) if self.name =~ /^ProconBypassMan::Plugin/ parent_const = Object.const_get("#{self.name}") parent_const.const_set(id, Module.new) Object.const_get("#{self.name}::#{id}") else super end end end prepend ExtModule end
Version data entries
28 entries across 28 versions & 1 rubygems