module FFI::OpenMPT::String
Constants
- KEYS
Public Class Methods
get(key)
click to toggle source
# File lib/ffi/openmpt/string.rb, line 35 def self.get(key) ptr = API.openmpt_get_string(key.to_s) ptr.read_string ensure API.openmpt_free_string(ptr) end
method_missing(name, *args)
click to toggle source
Calls superclass method
# File lib/ffi/openmpt/string.rb, line 42 def self.method_missing(name, *args) respond_to?(name) ? get(name) : super end
respond_to_missing?(name, *all)
click to toggle source
Calls superclass method
# File lib/ffi/openmpt/string.rb, line 46 def self.respond_to_missing?(name, *all) KEYS.include?(name) || super end