Sha256: 69a6b8afd98c09dc01639b9ebde5bd3e6f9c76db193539246d5232a96788783f
Contents?: true
Size: 459 Bytes
Versions: 11
Compression:
Stored size: 459 Bytes
Contents
# module Legato # module Reports # def self.add_report_method(klass) # # demodulize leaves potential to redefine # # these methods given different namespaces # method_name = klass.name.to_s.demodulize.underscore # return unless method_name.length > 0 # # class_eval <<-CODE # def #{method_name}(opts = {}, &block) # #{klass}.results(self, opts, &block) # end # CODE # end # end # end
Version data entries
11 entries across 11 versions & 1 rubygems