44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# File 'lib/ib/alerts/base-alert.rb', line 44
def self.method_missing( method_id, msg , *args, &block )
if msg.is_a? IB::Messages::Incoming::Alert
else
IB::Connection.logger.error { "Argument to IB::Alert is not a IB::Messages::Incoming::Alert" }
IB::Connection.logger.error { "The object: #{msg.inspect} " }
end
rescue NoMethodError
unless IB::Connection.logger.nil?
IB::Connection.logger.error { "The Argument is not a valid IB::Messages:Incoming::Alert object"}
IB::Connection.logger.error { "The object: #{msg.inspect} " }
else
puts "No Logging-Device specified"
puts "The object: #{msg.inspect} "
end
end
|