Class: ActsAsTable::Mapper::Base
- Inherits:
-
Object
- Object
- ActsAsTable::Mapper::Base
- Defined in:
- lib/acts_as_table/mapper.rb
Overview
ActsAsTable mapper object (abstract).
Direct Known Subclasses
BelongsTo, ForeignKey, HasAndBelongsToMany, HasMany, HasOne, Lense, PrimaryKey, RecordModel, RowModel
Instance Method Summary collapse
-
#initialize {|base| ... } ⇒ ActsAsTable::Mapper::Base
constructor
Returns a new ActsAsTable mapper object.
Constructor Details
#initialize {|base| ... } ⇒ ActsAsTable::Mapper::Base
Returns a new ActsAsTable mapper object.
11 12 13 14 15 16 17 18 |
# File 'lib/acts_as_table/mapper.rb', line 11 def initialize(&block) if block_given? case block.arity when 1 then block.call(self) else self.instance_eval(&block) end end end |