Module: Trees_utils::ClassMethods
- Defined in:
- lib/ruby-band/weka/classifiers/trees/trees_utils.rb
Overview
Class methods module
Class Method Summary collapse
Class Method Details
.classifier_attr_accessor(*args) ⇒ Object
70 71 72 73 74 75 76 77 |
# File 'lib/ruby-band/weka/classifiers/trees/trees_utils.rb', line 70 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 |