Class: Taupe::Model
- Inherits:
-
Object
- Object
- Taupe::Model
- Includes:
- Accessorized
- Defined in:
- lib/taupe/model.rb,
lib/taupe/model/table.rb
Overview
Model class
Defined Under Namespace
Classes: Table
Instance Attribute Summary collapse
-
#instance ⇒ Object
Accessors.
Class Method Summary collapse
-
.setup(&block) ⇒ Object
Setup the Cache instance.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Model
constructor
Constructor.
Methods included from Accessorized
Constructor Details
#initialize(&block) ⇒ Model
Constructor
31 32 33 34 |
# File 'lib/taupe/model.rb', line 31 def initialize(&block) instance_eval(&block) _write_class_code end |
Instance Attribute Details
#instance ⇒ Object
Accessors
21 22 23 |
# File 'lib/taupe/model.rb', line 21 def instance @instance end |
Class Method Details
.setup(&block) ⇒ Object
Setup the Cache instance
25 26 27 |
# File 'lib/taupe/model.rb', line 25 def self.setup(&block) @instance = new(&block) end |