Class: SimpleMaster::Master::Column::BooleanColumn
- Inherits:
-
SimpleMaster::Master::Column
- Object
- SimpleMaster::Master::Column
- SimpleMaster::Master::Column::BooleanColumn
- Defined in:
- lib/simple_master/master/column/boolean_column.rb
Instance Attribute Summary
Attributes inherited from SimpleMaster::Master::Column
Instance Method Summary collapse
Methods inherited from SimpleMaster::Master::Column
column_type, column_types, #db_column_name, inherited, #initialize, register
Constructor Details
This class inherits a constructor from SimpleMaster::Master::Column
Instance Method Details
#init(master_class, for_test = false) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/simple_master/master/column/boolean_column.rb', line 7 def init(master_class, for_test = false) super master_class.simple_master_module.class_eval <<-RUBY, __FILE__, __LINE__ + 1 def #{name}? !!#{name} end RUBY end |