We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb70b3 commit 94808adCopy full SHA for 94808ad
lib/h3.rb
@@ -26,13 +26,14 @@ module H3
26
extend Traversal
27
extend UnidirectionalEdges
28
29
+ PREDICATES = %i[h3_indexes_neighbors h3_pentagon h3_res_class_3
30
+ h3_unidirectional_edge_valid h3_valid].freeze
31
+ private_constant :PREDICATES
32
+
33
class << self
34
# FFI's attach_function doesn't allow method names ending with a
35
# question mark. This works around the issue by dynamically
36
# renaming those methods afterwards.
- PREDICATES = %i[h3_indexes_neighbors h3_pentagon h3_res_class_3
- h3_unidirectional_edge_valid h3_valid].freeze
- private_constant :PREDICATES
37
PREDICATES.each do |predicate|
38
alias_method "#{predicate}?", predicate
39
undef_method predicate
0 commit comments