mirror of
https://github.com/dkam/decisiontree.git
synced 2025-12-28 15:14:52 +00:00
Avoid polluting namespace
This commit is contained in:
7
lib/refinements/array_classification.rb
Normal file
7
lib/refinements/array_classification.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
module ArrayClassification
|
||||
refine Array do
|
||||
def classification
|
||||
collect(&:last)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user