Open PaulGale opened 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?
lib\stomp.rb
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.
lib\stomp\client.rb
lib\stomp\connection.rb
As the contents of these files are private methods the public interface of the gem is not altered in the process.
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:
to
lib\stomp\client.rb
andlib\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.