Class: Booletania::Attribute
- Inherits:
-
Object
- Object
- Booletania::Attribute
- Defined in:
- lib/booletania/attribute.rb
Class Method Summary collapse
Class Method Details
.define_methods!(klass, boolean_column_names) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/booletania/attribute.rb', line 4 def define_methods!(klass, boolean_column_names) boolean_column_names.each do |boolean_column_name| method_obj = Booletania::Method.new(klass, boolean_column_name.to_s) define_attribute_text(method_obj) (method_obj) end end |