You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2014/11/26 21:06:06 UTC

[19/35] qpid-proton git commit: NO-JIRA: Fix a few Ruby method names to fit naming conventions.

NO-JIRA: Fix a few Ruby method names to fit naming conventions.

Messenger::receiving and Messenger::stopped renamed to
Messenger::receiving? and Messenger::stopped?

Also fixed a typo in one rdoc and added rdoc to receiving?


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/b13222b8
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/b13222b8
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/b13222b8

Branch: refs/heads/examples
Commit: b13222b8214f4690c169eefc13354ff5f6479c2e
Parents: 1d3a138
Author: Darryl L. Pierce <mc...@gmail.com>
Authored: Thu Nov 20 13:45:15 2014 -0500
Committer: Darryl L. Pierce <mc...@gmail.com>
Committed: Thu Nov 20 13:46:17 2014 -0500

----------------------------------------------------------------------
 proton-c/bindings/ruby/lib/qpid_proton/messenger.rb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/b13222b8/proton-c/bindings/ruby/lib/qpid_proton/messenger.rb
----------------------------------------------------------------------
diff --git a/proton-c/bindings/ruby/lib/qpid_proton/messenger.rb b/proton-c/bindings/ruby/lib/qpid_proton/messenger.rb
index 66a2f93..f17205d 100644
--- a/proton-c/bindings/ruby/lib/qpid_proton/messenger.rb
+++ b/proton-c/bindings/ruby/lib/qpid_proton/messenger.rb
@@ -208,10 +208,10 @@ module Qpid
         Cproton.pn_messenger_stop(@impl)
       end
 
-      # Returns true iff a Messenger is in the stopped state.
+      # Returns true if a Messenger is in the stopped state.
       # This function does not block.
       #
-      def stopped
+      def stopped?
         Cproton.pn_messenger_stopped(@impl)
       end
 
@@ -389,7 +389,8 @@ module Qpid
         Cproton.pn_messenger_recv(@impl, limit)
       end
 
-      def receiving
+      # Returns true if the messenger is currently receiving data.
+      def receiving?
         Cproton.pn_messenger_receiving(@impl)
       end
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org