class FFI::ConstGenerator::Constant

def initialize(name, format, cast, ruby_name = nil, converter=nil)

Parameters:
  • converter (#call) -- convert the value from a string to the appropriate
  • ruby_name () -- alternate ruby name for {#to_ruby}
  • cast (String) -- a C cast for the value
  • format (String) -- a printf format string to print the value out
  • name (#to_s) --
def initialize(name, format, cast, ruby_name = nil, converter=nil)
  @name = name
  @format = format
  @cast = cast
  @ruby_name = ruby_name
  @converter = converter
  @value = nil
end