Module: Informal::Model
- Defined in:
- lib/informal/model.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
5 6 7 8 9 |
# File 'lib/informal/model.rb', line 5 def self.included(klass) klass.class_eval do include ModelNoInit end end |
Instance Method Details
#initialize(attrs = {}) ⇒ Object
11 12 13 |
# File 'lib/informal/model.rb', line 11 def initialize(attrs={}) self.attributes = attrs end |