Method: CTypes::Bitfield.layout
- Defined in:
- lib/ctypes/bitfield.rb
.layout(&block) ⇒ Object
describe the layout of the bitfield
66 67 68 69 70 71 |
# File 'lib/ctypes/bitfield.rb', line 66 def self.layout(&block) raise Error, "no block given" unless block builder = Builder.new(&block) builder.instance_eval(&block) apply_layout(builder) end |