Method: Weka::Core::Instances#date
- Defined in:
- lib/weka/core/instances.rb
#date(name, format: 'yyyy-MM-dd HH:mm', class_attribute: false) ⇒ Object Also known as: add_date_attribute
176 177 178 179 180 |
# File 'lib/weka/core/instances.rb', line 176 def date(name, format: 'yyyy-MM-dd HH:mm', class_attribute: false) attribute = Attribute.new_date(name, format) add_attribute(attribute) self.class_attribute = name if class_attribute end |