Class: X11::Type::Atom

Inherits:
Object
  • Object
show all
Defined in:
lib/X11/type.rb

Class Method Summary collapse

Class Method Details

.from_packet(sock) ⇒ Object



105
# File 'lib/X11/type.rb', line 105

def self.from_packet(sock) = unpack(sock.read(size))

.pack(x, dpy) ⇒ Object



102
# File 'lib/X11/type.rb', line 102

def self.pack(x,dpy) = [dpy.atom(x)].pack("L")

.sizeObject



104
# File 'lib/X11/type.rb', line 104

def self.size = 4

.unpack(x) ⇒ Object



103
# File 'lib/X11/type.rb', line 103

def self.unpack(x)   = x.nil? ? nil : x.unpack1("L")