Module: HashControl::WritableModel

Includes:
Model
Defined in:
lib/hash_control/model.rb

Overview

Allow setting

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Model

#[], #ai, #as_json, #initialize, #slice, #symbolized_hash, #to_json

Class Method Details

.included(base) ⇒ Object



93
94
95
96
# File 'lib/hash_control/model.rb', line 93

def self.included(base)
  Model.included(base)
  base.extend ClassMethods
end

Instance Method Details

#[]=(name, x) ⇒ Object



89
90
91
# File 'lib/hash_control/model.rb', line 89

def []=(name, x)
  @hash[name] = x
end