Method: CTypes::Bitfield.pretty_print

Defined in:
lib/ctypes/bitfield.rb

.pretty_print(q) ⇒ Object



153
154
155
156
157
158
159
# File 'lib/ctypes/bitfield.rb', line 153

def self.pretty_print(q)
  q.ctype("bitfield", @endian) do
    q.seplist(@layout, -> { q.breakable(";") }) do |cmd|
      q.text(cmd)
    end
  end
end