class AnyBar::Client
Constants
- HOSTNAME
Attributes
color[R]
Public Class Methods
new(port = nil)
click to toggle source
# File lib/any_bar.rb, line 10 def initialize(port = nil) @port = port.nil? ? 1738 : port.to_i end
Public Instance Methods
color=(color)
click to toggle source
# File lib/any_bar.rb, line 14 def color=(color) @color = color any_bar = UDPSocket.new any_bar.connect HOSTNAME, @port any_bar.send @color, 0 any_bar.close end