Module: Atig::Db::Listenable

Included in:
Followings, Lists, Statuses
Defined in:
lib/atig/db/listenable.rb

Constant Summary collapse

SingleThread =
false

Instance Method Summary collapse

Instance Method Details

#listen(&f) ⇒ Object



8
9
10
11
# File 'lib/atig/db/listenable.rb', line 8

def listen(&f)
  @listeners ||= []
  @listeners.push f
end