Module: Cheveret::Table::Columns
- Included in:
- Base
- Defined in:
- lib/cheveret/table/columns.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#columns ⇒ Object
instance proxy method to get columns defined by the class.
Class Method Details
.included(base) ⇒ Object
28 29 30 31 32 |
# File 'lib/cheveret/table/columns.rb', line 28 def self.included(base) base.module_eval do extend ClassMethods end end |
Instance Method Details
#columns ⇒ Object
instance proxy method to get columns defined by the class
71 72 73 |
# File 'lib/cheveret/table/columns.rb', line 71 def columns @column ||= self.class.columns.dup end |