Method: FFI::StructGenerator#initialize
- Defined in:
- lib/ffi/tools/struct_generator.rb
#initialize(name, options = {}) ⇒ StructGenerator
Returns a new instance of StructGenerator.
39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/ffi/tools/struct_generator.rb', line 39 def initialize(name, = {}) @name = name @struct_name = nil @includes = [] @fields = [] @found = false @size = nil if block_given? then yield self calculate self.class..merge() end end |