qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject [21/41] qpid-proton git commit: NO-JIRA: [ruby] Add "message.to" alias for "message.address"
Date Wed, 04 Jul 2018 15:57:53 GMT
NO-JIRA: [ruby] Add "message.to" alias for "message.address"


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

Branch: refs/heads/go1
Commit: c3f772ae6a3392d4ce54a34e9b20c3dc235daae2
Parents: 863825c
Author: Alan Conway <aconway@redhat.com>
Authored: Thu Jun 7 16:09:31 2018 -0400
Committer: Alan Conway <aconway@redhat.com>
Committed: Wed Jun 13 08:50:05 2018 -0400

----------------------------------------------------------------------
 ruby/lib/core/message.rb | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/c3f772ae/ruby/lib/core/message.rb
----------------------------------------------------------------------
diff --git a/ruby/lib/core/message.rb b/ruby/lib/core/message.rb
index 0256387..53244b9 100644
--- a/ruby/lib/core/message.rb
+++ b/ruby/lib/core/message.rb
@@ -279,22 +279,19 @@ module Qpid::Proton
       Cproton.pn_message_get_user_id(@impl)
     end
 
-    # Sets the destination address.
-    #
-    # ==== Options
-    #
-    # * address - the address
-    #
-    def address=(address)
+    # @param address[String] set the destination address
+    def to=(address)
       Cproton.pn_message_set_address(@impl, address)
     end
+    alias address= to=
 
-    # Returns the destination address.
-    #
-    def address
+    # @return [String] get the destination address.
+    def to
       Cproton.pn_message_get_address(@impl)
     end
 
+    alias address to
+
     # Sets the subject.
     #
     # ==== Options


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


Mime
View raw message