Skip to content

Commit 94808ad

Browse files
committed
More minor refactor.
1 parent cdb70b3 commit 94808ad

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/h3.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ module H3
2626
extend Traversal
2727
extend UnidirectionalEdges
2828

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+
2933
class << self
3034
# FFI's attach_function doesn't allow method names ending with a
3135
# question mark. This works around the issue by dynamically
3236
# renaming those methods afterwards.
33-
PREDICATES = %i[h3_indexes_neighbors h3_pentagon h3_res_class_3
34-
h3_unidirectional_edge_valid h3_valid].freeze
35-
private_constant :PREDICATES
3637
PREDICATES.each do |predicate|
3738
alias_method "#{predicate}?", predicate
3839
undef_method predicate

0 commit comments

Comments
 (0)