Module: Clusterer_utils::ClassMethods
- Defined in:
- lib/ruby-band/weka/clusterers/clusterers_utils.rb
Overview
Class methods module
Class Method Summary collapse
Class Method Details
.classifier_attr_accessor(*args) ⇒ Object
74 75 76 77 78 79 80 81 |
# File 'lib/ruby-band/weka/clusterers/clusterers_utils.rb', line 74 def self.classifier_attr_accessor(*args) args.each do |arg| #Here's the getter self.class_eval("def #{arg};@#{arg};end") #Here's the setter self.class_eval("def set_#{arg}(val);@#{arg}=val;end") end end |