summaryrefslogtreecommitdiff
path: root/libmpd.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-07-06 16:47:53 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-07-06 16:47:53 -0700
commitb2058621f22b33f929a267df36be7d992ef29133 (patch)
tree8086bb13e2d7ea0fbbc6f84c97cd2f8ab36267d9 /libmpd.rb
parenta68efddce147f3ace1107720a1c3fb1364508e18 (diff)
downloadruby-libmpd-b2058621f22b33f929a267df36be7d992ef29133.tar.gz
ruby-libmpd-b2058621f22b33f929a267df36be7d992ef29133.tar.xz
Add accessor methods for host and port.HEADmaster
Diffstat (limited to 'libmpd.rb')
-rw-r--r--libmpd.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpd.rb b/libmpd.rb
index be46161..a0b94ed 100644
--- a/libmpd.rb
+++ b/libmpd.rb
@@ -43,6 +43,8 @@ class MPD
class Error < StandardError
end
+ attr_accessor :host, :port
+
# Initialise an MPD object with the specified host and port.
#
# The default host is "localhost" and the default port is 6600.