Module: Og::MemoryUtils
- Included in:
- MemoryStore, MemoryStore
- Defined in:
- lib/og/store/memory.rb
Overview
A collection of utilities. Mainly to stay compatible with the SQL based backends.
Instance Method Summary collapse
-
#join_table(class1, class2, postfix = nil) ⇒ Object
FIXME: find a neutral name.
- #quote(val) ⇒ Object
-
#table(klass) ⇒ Object
FIXME: find a neutral name.
Instance Method Details
#join_table(class1, class2, postfix = nil) ⇒ Object
FIXME: find a neutral name.
19 20 21 |
# File 'lib/og/store/memory.rb', line 19 def join_table(class1, class2, postfix = nil) "#{class1}#{class2}" end |
#quote(val) ⇒ Object
23 24 25 |
# File 'lib/og/store/memory.rb', line 23 def quote(val) val.inspect end |
#table(klass) ⇒ Object
FIXME: find a neutral name.
13 14 15 |
# File 'lib/og/store/memory.rb', line 13 def table(klass) klass.to_s end |