Sha256: 378105ed761653ca01258365c417701e10d3c1b246c59eac1f702e348a8c8333
Contents?: true
Size: 281 Bytes
Versions: 2
Compression:
Stored size: 281 Bytes
Contents
module Aegis class Util class << self def define_class_method(object, method, &body) prototype = object.respond_to?(:singleton_class) ? object.singleton_class : object.metaclass prototype.send(:define_method, method, &body) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aegis-2.5.3 | lib/aegis/util.rb |
aegis-2.5.2 | lib/aegis/util.rb |