class FFI::Enums

def find(query)

Returns:
  • (Enum) -

Parameters:
  • query () -- enum tag or part of an enum name
def find(query)
  if @tagged_enums.has_key?(query)
    @tagged_enums[query]
  else
    @all_enums.detect { |enum| enum.symbols.include?(query) }
  end
end