Skip to content

Commit

Permalink
clearer callback syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
adammck committed Jan 12, 2009
1 parent dc2f422 commit 683d100
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rubygsm/core.rb
Expand Up @@ -773,10 +773,10 @@ def receive(callback, interval=5, join_thread=false)
# in the same format that they were built
# back in _parse_incoming_sms!_
unless @incoming.empty?
@incoming.each do |inc|
@incoming.each do |msg|
begin
callback.call *inc

callback.call(msg)
rescue StandardError => err
log "Error in callback: #{err}"
end
Expand Down

0 comments on commit 683d100

Please sign in to comment.