class Ezframe::DB::JointHash
Public Class Methods
new(default_table, values = {})
click to toggle source
# File lib/ezframe/database.rb, line 58 def initialize(default_table, values = {}) @default_table = default_table self.update(values) end
Public Instance Methods
[](key)
click to toggle source
# File lib/ezframe/database.rb, line 67 def [](key) key = key.to_s return fetch(key) if has_key?(key) alt_key = "#{@default_table}.#{key}" return fetch(alt_key) if has_key?(alt_key) return nil end
[]=(key, value)
click to toggle source
Calls superclass method
# File lib/ezframe/database.rb, line 63 def []=(key, value) super(key.to_s, value) end