stompgem / stomp

A ruby gem for sending and receiving messages from a Stomp protocol compliant message queue. Includes: failover logic, ssl support.
http://stomp.github.com
Apache License 2.0
152 stars 80 forks source link

Remove private includes from stomp.rb #84

Open PaulGale opened 10 years ago

PaulGale commented 10 years ago

Is it possible to relocate the private (so called) require statements found in lib\stomp.rb to the files that need them?

For example relocate:

# Private methods in #Client
require 'client/utils' # private Client Utility methods

# Private methods in #Connection
require 'connection/utils' # private Connection Utility methods
require 'connection/netio' # private Network io methods
require 'connection/heartbeats' # private 1.1+ heartbeat related methods
require 'connection/utf8' # private 1.1+ UTF8 related methods

to lib\stomp\client.rb and lib\stomp\connection.rb as appropriate.

As the contents of these files are private methods the public interface of the gem is not altered in the process.