module Moory::Refinement::ArrayRefinement
Public Instance Methods
identity_map()
click to toggle source
# File lib/moory/refinement.rb, line 9 def identity_map map_to(self) end
map_to(other)
click to toggle source
# File lib/moory/refinement.rb, line 5 def map_to(other) Hash[*self.zip(other).flatten].compact end