Sha256: 5600ec4bf6a465effa88ea50274f1b87da33a37933d3c2696b9d2d2f84f10846
Contents?: true
Size: 326 Bytes
Versions: 22
Compression:
Stored size: 326 Bytes
Contents
module MissileEmitter class BattleField < BasicObject def initialize(context, *extras, callable) @context, @extras, @handler = context, extras, callable end def method_missing(*args, &block) @handler.call @context, *@extras, *args, &block end alias_method :emit!, :instance_eval end end
Version data entries
22 entries across 22 versions & 1 rubygems