Class: Erlash::Formatters
- Inherits:
-
Object
- Object
- Erlash::Formatters
- Includes:
- Enumerable
- Defined in:
- lib/erlash/formatters.rb
Instance Method Summary collapse
Instance Method Details
#each(&block) ⇒ Object
13 14 15 |
# File 'lib/erlash/formatters.rb', line 13 def each(&block) db.each(&block) end |
#find(klass) ⇒ Object
5 6 7 |
# File 'lib/erlash/formatters.rb', line 5 def find(klass) db[klass] end |
#register(klass, val, opts = {}) ⇒ Object
9 10 11 |
# File 'lib/erlash/formatters.rb', line 9 def register(klass, val, opts = {}) db[klass] = val end |