Sha256: 82ee6f113d097a3c9d744b861c9af0b2c74135c4c395b157e6a6ad0aa3c1c9bf
Contents?: true
Size: 311 Bytes
Versions: 14
Compression:
Stored size: 311 Bytes
Contents
class ThinkingSphinx::Callbacks attr_reader :instance def self.callbacks(*methods) mod = Module.new methods.each do |method| mod.send(:define_method, method) { |instance| new(instance).send(method) } end extend mod end def initialize(instance) @instance = instance end end
Version data entries
14 entries across 14 versions & 1 rubygems