class Erlash::Formatters

Public Instance Methods

each(&block) click to toggle source
# File lib/erlash/formatters.rb, line 13
def each(&block)
  db.each(&block)
end
find(klass) click to toggle source
# File lib/erlash/formatters.rb, line 5
def find(klass)
  db[klass]
end
register(klass, val, opts = {}) click to toggle source
# File lib/erlash/formatters.rb, line 9
def register(klass, val, opts = {})
  db[klass] = val
end

Private Instance Methods

db() click to toggle source
# File lib/erlash/formatters.rb, line 19
def db
  @db ||= Fusu::HashWithIndifferentAccess.new
end